StevenFL

Embedded base64 image, send with 360Works Email

3 posts in this topic

Hi,

I want to embedded "base64" images into the email body and send the email with 360Works Email. When I do that the image will show on recipient as a broken image.
The base64 code is taken from email I have received with 360Works.
Attached html file has only the code I use for the image. When opened this attached file in a browser, the image shows exactly the image.

I start the image code with:    <img border="0" width="192" height="65" id="Picture_x0020_9" src="data:image/png;base64,
and end it with this:    " alt="Funsparks.png">

Any one an idea what I have to change to get this the image embedded into the email body and show on recipient side??

Thanks a lot

Steven

Logo.html

Share this post


Link to post
Share on other sites

Hi Steven,

In order for inline attachments to work with the Email plugin, you need to use contentIDs in your html <img src> tags and then reference them in the function EmailAttachfileInline. For example:

EmailSetBody(
     "<html><body><img src=\"cid:headergif123\">" &
     "
This is an HTML message with embedded images

" &
     "<img src=\"cid:footergif456\">" &
     "</body></html>";
     "html"
 ) and
EmailAttachFileInline( Globals::headerContainer ; "headergif123" )
EmailAttachFileInline( Globals::footerContainer ; "footergif456" )

In this example the contentIDs (cid) are headergif123 and footergif456. These names are arbitrary. The first parameter in the EmailAttachFileInline function call can either be a field reference or a URL to the file. 

Let me know if you have any questions!

Share this post


Link to post
Share on other sites

Dear, Thanks a lot for that will test it later, but I'm sure it will work out as you said. Have a great week. Steven

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!


Register a new account

Sign in

Already have an account? Sign in here.


Sign In Now