2024-1Q: [CRM] Including images in HTML Mass mails and Email Templates

If you would like to add images to  an HTML mass email, or email template, the best way to do this, would be to use the html image tag.

There are three ways of doing this: 

1) Using CID with attachments

2) Having the image hosted on an external site

3) Encoding the image with base64 

Options 1 can only be used for Mass Emails, but option 2 and 3 can be used for both Mass mails and in Email Templates.

1) CID and Attachments:


You would add your graphics/images to the mass email attachment section and then embed it using the cid tag in the image src element with html, SIMPLer names the CID the same as the attachment name (make sure to also include the file extension type).

If done correctly the images will be embedded in the body and wont show as attachments.


<img src="cid:demoimage.png" alt="img" />

Fig 1: Attach Files - Mass Email

2) External Site:


<img src="URL TO THE IMAGE" alt="img" />

3) Base64:


To get the base64 code you can use a simple image to base64 converter online, note it is normally very long as it encodes the image to text.

This method is not really good for large images as email clients might limit the characters in emails and if too long the email will get cut off, it's good for small visual graphics.


<img src="data:image/png;base64,iVBORw0KGgoAAAANSUhE..." alt="img" />

Published Date: 8 Jan 2024

Engineer: AP

Contact Azotel Support:

Need more help? Save time by creating a maintenance ticket to Azotel through your instance or email support@azotel.com