Solved

Embeded Image retrieved from DB into SMTP email

  • 17 January 2023
  • 2 replies
  • 53 views

Hi, 
Hope you have a great day.

How to include image to be show in the email body. Now trying to use the SMTP connector, but actually after some search and testing, the images should be included as attachments and then refered by id inside the html in the email body.

Note: the images we need to show is acually stored in the sql server DB, so it is in the varbinary format.
I have tried to include the image as Base64 in the htmle body, but also not showing. 
so the qestion is how to acheive that in SF.

Loosking forward to hearing from you.

Thanks
Ali

icon

Best answer by Mark Jongeling 18 January 2023, 16:44

View original

This topic has been closed for comments

2 replies

Userlevel 5
Badge +8

Hi @Ali.SISAR,

Did Mark his answer help you out?

Userlevel 7
Badge +23

Hi Ali,

Can the following topics help you out?:

and: https://stackoverflow.com/questions/8499633/how-to-display-base64-images-in-html

Adding an image in the following fashion to the HTML body of your email should show the image:

<img src="data:image/png;base64, iVBORw0KGgoAAAANSUhEUgAAAAUA
AAAFCAYAAACNbyblAAAAHElEQVQI12P4//8/w38GIAXDIBKE0DHxgljNBAAO
9TXL0Y4OHwAAAABJRU5ErkJggg==" alt="Red dot" />