Jump to content
StevenFL

Embedded base64 image, send with 360Works Email

Recommended Posts

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

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.


  • Who Viewed the Topic

    1 member has viewed this topic:
    Nico Kobes 
×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use.