Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Best way to include images in HTML email?

I'm creating some HTML emails with images included. For each email the size of the images + email is less than 150kb.

I'm trying to make them work well for the main clients mentioned here http://www.campaignmonitor.com/resources/will-it-work/email-clients/


As far as I can tell there are two main ways of including images with the email:

  • Embedding the images directly.

    • Pros: Images load as soon as email is opened (in most clients).
    • Cons: Does not seem to work well on mobile browsers.


  • Hosting them yourself and just using links to them in the email
    • Pros: Seems to have better compatibility.
    • Cons: Receiver always has to click 'Display all images' button/link, added complexity of maintaining the images on a server.


It seems to me that embedding the images would be the best solution, as it means users will see them straight away after opening the email. Is this correct or would you suggest another way?

Thank you very much for your help :-)

like image 716
Jon Cox Avatar asked Jan 29 '13 17:01

Jon Cox


People also ask

Which is the best way to include an image in HTML?

The HTML <img> tag is used to embed an image in a web page.

How do you embed an image in an email?

Drag-and-drop embedding This is the easiest way to embed images into an email without learning how to code. Email providers, like Gmail, allow you to drag an image from a folder and drop it into an area inside the compose box that says “attach files here”.


1 Answers

There is no embedding of images where images will auto load. 'Display Images' will always be an option for recipient where there are images.

I assume embedding is to attach the image and then load it into the body, as would happen via pasting an image into Outlook. This method makes larger file sizes in the inbox, and looks messy with all the images as attachments.

By linking to a hosted image, whether you host it yourself or automatically with the Email Service Provider (Campaign Monitor or Mailchimp for example) you don't need to worry about that. That is the industry standard way of sending commercial emails.

Go with an ESP and let them host your images.

like image 176
John Avatar answered Sep 17 '22 15:09

John