17

Do you attach the images?

Use absolute urls?

How do you best avoid getting flagged as spam?

mk.
  • 26,076
  • 13
  • 38
  • 41

4 Answers4

14

One of the biggest causes, that I have found, for email to be flagged as spam is DNS. Make sure the domain / MX records from which you are sending the email actually resolve correctly back from the server used for sending.

As for images, you could attach them, but the most common way is to host them and use absolute urls. Primarily this is a bandwidth issue - you have to figure you're going to get an open rate of 10 - 15%: if you have to attach all the assets to every email, 85% of the bandwidth you'll use will be wasted.

Ian
  • 4,208
  • 21
  • 33
  • I thought that attached images had a higher chance to be seen, because email clients do not download images by default (it's a security issue, since spammers could use the image download requests to track which users actually read the email, and then send more spam). So if I want my emails to look nice, I need to embed the images, correct? – MiniQuark Aug 19 '13 at 15:11
9

You attach the emails then reference them in your HTML like so:

<img src="cid:imagefilename.jpg" />

Outlook, at least, recognizes this as a reference to an attached image and dumps it in appropriately.

EndangeredMassa
  • 17,208
  • 8
  • 55
  • 79
5

You'll want to use absolute URLs to link out to images on a server. Users won't want to download your attachments. Also most email clients will not displays images by default, so it's a good idea to keep the really important content as text.

Email clients generally all use very different rendering methods. For example, Outlook 2007 uses Word's HTML rendering engine, whereas previous versions used Internet Explorer.

Do be aware that CSS support is also very limited to in emails. Most clients, especially web mail, will strip out everything outside of the <body> tag, as well as <style> tags. This means that external or embedded CSS will not work, and that inline styles are the safest bet (the style="" attribute). There is also poor support for many CSS rules in Outlook 2007. This means that a lot people have returned to using tables for laying out email.

As it was pointed out, Campaign Monitor is an excellent resource, and I especially recommend their CSS Compatibility Chart

Bryan M.
  • 17,142
  • 8
  • 46
  • 60
2

Campaign Monitor is a great resources for html email: http://www.campaignmonitor.com/resources/#building

Also http://www.email-standards.org/, but seems down right now.

Grégoire Cachet
  • 2,547
  • 3
  • 29
  • 27