Skip to main content
Solved

Embeded Image retrieved from DB into SMTP email


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

Best answer by Mark Jongeling

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" />
View original
Did this topic help you find an answer to your question?
This topic has been closed for comments

2 replies

Mark Jongeling
Administrator
Forum|alt.badge.img+23
  • Administrator
  • 3936 replies
  • Answer
  • January 18, 2023

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" />

Jeroen van den Belt
Administrator
Forum|alt.badge.img+9

Hi @Ali.SISAR,

Did Mark his answer help you out?


Cookie policy

We use cookies to enhance and personalize your experience. If you accept you agree to our full cookie policy. Learn more about our cookies.

 
Cookie settings