Embed image into email template

Help for integrating the Laravel package
Forum rules
Always add your Laravel, Aimeos and PHP version as well as your environment (Linux/Mac/Win)
Spam and unrelated posts will be removed immediately!
kartikbhat
Posts: 40
Joined: 02 Dec 2021, 17:18

Embed image into email template

Post by kartikbhat » 27 Oct 2022, 11:00

How to use embedding images into the email template ? from this document I got that it will return Content Id of the image to the img tag,
I am not getting how to use this eith in Standard.php or body-standard.php of email template

$msg or $content are not accessable inside body-standard.php

Help me to add it correctly



TIA :)
Attachments
addImage.png
addImage.png (20.69 KiB) Viewed 571 times

User avatar
aimeos
Administrator
Posts: 7907
Joined: 01 Jan 1970, 00:00

Re: Embed image into email template

Post by aimeos » 28 Oct 2022, 09:48

This is correct but you need to make sure that the image file is available in the same directory as the template so it's found.
Professional support and custom implementation are available at Aimeos.com
If you like Aimeos, Image give us a star

kartikbhat
Posts: 40
Joined: 02 Dec 2021, 17:18

Re: Embed image into email template

Post by kartikbhat » 29 Oct 2022, 15:29

I have a file called logo.png present in public folder of laravel project, then how can I bring this logo as an embedded image in my email template ?
by using above syntax how I make it possible?
need to add it in Standard.php or html-body-standard.php ?

Can you provide me an example or more detail on usage of this? please

TIA :)

Post Reply