return to Creating Messages, Common Problems with Email Layout, table of contents

How to use <img> tags in HTML messages

You can use <img> tags in your HTML code like you would in any other HTML document. The src attribute of the image tag should be the URL of the image on your web server. If you want the source of the image to be a file that is instead attached to your message, you'll need to use a special URL for the <img> tag's src attribute.

To use an <img> tag with a message attachment:

The src attribute should be set to the letters cid: followed by the name of the attached file (case matters). For example, if you had attached a file called big_picture.jpg, the <img> tag would be <img src="cid:big_picture.jpg">.

Related Articles

  1. Attaching files to messages
  2. Including pictures in messages
  3. Using mail-merge tags
  4. Why are changes to my HTML message not reflected in the preview window? ★