Image in a email body

Hi Guys,   I have requirement where in I want to insert image stored in entity in the email body. Please help me to achieve this functionality.   Thanks in advance.
2 answers

Hi Abrar,

Check your Template, if you can add Base 64 content in your email (HTML template). if so you can pass your Base 64 as a token. 
For converting the image to base64 you can make use of base 64 Encode in Community Commons. 


You can Design your Template using html Code. 


example  html code : 

<img src="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAUAAAAFCAYAAACNbyblAAAAHElEQVQI12P4
  //8/w38GIAXDIBKE0DHxgljNBAAO9TXL0Y4OHwAAAABJRU5ErkJggg==" alt="Red dot" />

 your template will look like :

< img src=”data”image/png;base64,{base64} >

Hope it helps


The answer differs from the email module used:

Email Connector:

The template can contain images


Email Service:

The HTML body can contain the image


Email module with Templates (deprecated):

Use the HTML body for the template and image


Go Make IT

(If this helped you, please accept the answer)