2

I am currently working on send emails with image files included; they need to display as PNGs. My plan is to host the images on a server and then link them in the email. However, I am unsure of if I should send the emails as the PNGs themselves or if I should encode them to base64 before I send them. What is the best practice?

Thanks!

AP730
  • 43
  • 1
  • 6

2 Answers2

4

Best practice is to reference external PNG, JPG, and JPG files.

base64 encoded images are not well supported in email. They aren't supported in most web email clients (including Gmail) and are completely blocked in Outlook. Even for the small clients that do support embedded images, file size can quickly become a problem. Gmail App (iOS, Android) and Outlook (iOS) truncate email messages whose file size exceeds 102KB. Remotely referenced images (Eg. <img src="http://www.website.com/image.png"> do not count towards the email's file size, but base64 encoded images do and can quickly blow out an email's file size past the 102KB limit. Just something else to consider.

Ted Goas
  • 7,051
  • 1
  • 35
  • 42
0

Most html emails feature images hosted on an external web site. This gets around the problem with some email clients that will not download an attachment until directed by you.

In the case of Email Service Providers (ESP) like Mailchimp or Salesforce Marketing Cloud (Exact Target), they host many of the images when you use their services. You could just as easily host them elsewhere.

Good luck.

gwally
  • 3,349
  • 2
  • 14
  • 28