Jump to content
View in the app

A better way to browse. Learn more.

FMForums.com

A full-screen app on your home screen with push notifications, badges and more.

To install this app on iOS and iPadOS
  1. Tap the Share icon in Safari
  2. Scroll the menu and tap Add to Home Screen.
  3. Tap Add in the top-right corner.
To install this app on Android
  1. Tap the 3-dot menu (⋮) in the top-right corner of the browser.
  2. Tap Add to Home screen or Install app.
  3. Confirm by tapping Install.

Embedded base64 image, send with 360Works Email

Featured Replies

  • Newbies

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

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!

  • Author
  • Newbies

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

Create an account or sign in to comment

Important Information

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

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.