Digital Marketing Insights

EMAIL NEWSLETTERS – DECODED

If you’re one of those who’ve had the harrowing experience of coding an HTML E-newsletter, and spent hours trying to figure out what you’ve done wrong that’s causing the design to render differently on different email clients, this blog post is an effort to simplify things a bit.

Before we go any further, it is most important to understand that coding for HTML newsletters is vastly different from coding an HTML web page.  Browser compatibility, coupled with email clients’ compatibility, creates a unique challenge to programmers coding for HTML newsletters.  The reason for this is that various email clients have different levels of CSS Support.

Pixel perfect or not, email newsletters are an important ingredient in the digital marketing strategy that speaks directly to the target audience. They are here to stay and so, while email clients may take years adapting themselves to the changing html and CSS standards, it is us, programmers who will have to pull up our socks and find innovative solutions to design outstanding email newsletters that send the message across effectively and beautifully.

Email services like Gmail, Lotus Notes & Outlook 2007 are most restrictive and therefore it is imperative that we code for these clients first. If the newsletter renders consistently on each of these platforms, there’s a high likelihood that it’ll work on most other email clients too.

Here are some of my top tips that I’ve picked up … some through my experience, some from websites like Campaign Monitor and still others from forums and other blog posts:

HTML Coding

STYLES

IMAGES

Email Services & their quirks

<!DOCTYPE html PUBLIC “-//W3C//DTD XHTML 1.0 Transitional//EN” “http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd”>
<html xmlns:v=”urn:schemas-microsoft-com:vml”>
<head>

<body style=”margin:0; padding:0; width:100% !important;”>

<table width=”600″ cellpadding=”0″ cellspacing=”0″ border=”0″>
<tr>
<!– Backup background color is #DDDDDD –>
<td bgcolor=”#DDDDDD” style=”background-image: url(‘image path’);” background=”image path” width=”600″ height=”120″ valign=”top”>
<!–[if gte mso 9]>
<v:rect style=”width:600px;height:120px;” strokecolor=”none”>
<v:fill type=”tile” color=”#DDDDDD” src=”image path” /></v:fill>
</v:rect>
<v:shape id=”theText” style=”position:absolute;width:600px;height:120px;”>
<![endif]–>
<p>If you can see this over the image, background images are successful.</p>
<!–[if gte mso 9]>
</v:shape>
<![endif]–></td>
</tr>
</table>

The only way to get around this is to style the links to colors that blend with your design. The class applied to these links is: ‘yshortcuts’. So, style these in the <head> section of your document like below:

<style>
.yshortcuts { color: #CCCCCC } /* Body text color */
.yshortcuts a span { color: #00FF00 } /* Link text color */
</style>

GENERAL GUIDELINES:

While pixel perfect HTML newsletters that render exactly the same on every email client are a myth; given the restrictive email client support of the new HTML & CSS Standards, most of the above steps result in some form of consistency in terms of display on different platforms and client services.  It is always worthwhile however, to test the newsletter on different browsers to check for browser compatibility and then test them on various platforms and various email services.

Similarly, it is worthwhile to note that while fancy HTML newsletters look great, it isn’t worth the effort and resources spent, if it looks like that only to 10% of your customer base. A simple readable HTML that renders well and sends your message across to your target audience with a clear message and call to action is what makes the impact!

Abhishek is a part of the Ethinos search team and helps client with various search techniques.