<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>Ian Hoar – Passion for Technology – Geeking Out &#187; Email</title>
	<atom:link href="http://www.ianhoar.com/category/email/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.ianhoar.com</link>
	<description>Technology, Web, Toys, Games, Design, Entertainment, Gadgets, &#38; Geeking Out</description>
	<lastBuildDate>Tue, 07 Sep 2010 02:12:24 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.0.1</generator>
		<item>
		<title>Outlook 2007 losing font-family declaration</title>
		<link>http://www.ianhoar.com/2010/06/27/outlook-2007-losing-font-family-declaration/</link>
		<comments>http://www.ianhoar.com/2010/06/27/outlook-2007-losing-font-family-declaration/#comments</comments>
		<pubDate>Sun, 27 Jun 2010 23:35:11 +0000</pubDate>
		<dc:creator>Ian Hoar</dc:creator>
				<category><![CDATA[Bugs]]></category>
		<category><![CDATA[Code]]></category>
		<category><![CDATA[Email]]></category>
		<category><![CDATA[Tutorials]]></category>
		<category><![CDATA[email newsletters]]></category>
		<category><![CDATA[outlook]]></category>

		<guid isPermaLink="false">http://www.ianhoar.com/?p=3861</guid>
		<description><![CDATA[Email clients are one of the pinnacle frustrations for web designers. The limitations are far greater than those of web browsers and you can always count on Microsoft&#8217;s Outlook 2007 being at the forefront of compatibility problems and bug issues. If you create emails that have to support Outlook 2007&#8242;s wonky Word rendering you may [...]]]></description>
			<content:encoded><![CDATA[<p><img class="alignleft size-full wp-image-3397" title="Outlook 2007" src="http://www.ianhoar.com/wp-content/uploads/2008/12/outlook_2007.jpg" alt="" width="150" height="147" />Email clients are one of the pinnacle frustrations for web designers. The limitations are far greater than those of web browsers and you can always count on Microsoft&#8217;s Outlook 2007 being at the forefront of compatibility problems and bug issues. If you create emails that have to support Outlook 2007&#8242;s wonky Word rendering you may have noticed on occasion that your specified <strong>font-family</strong> disappears. There&#8217;s a few ways to fix this, <strong>but some are better than others</strong>.</p>
<p><span id="more-3861"></span></p>
<h2>Keeping code clean in the messy world of email newsletters</h2>
<p>Obviously putting the <strong>font-family</strong> in the <strong>table</strong> or a surrounding <strong>div</strong> should do the trick, and it does for everything <strong>except Outlook 2007</strong>, for some reasons <strong>font-family</strong> declarations do not cascade. One easy but tedious way to fix this issue is to put inline styles all over the place. I don&#8217;t like this method, it makes it easy to forget sections of copy and it messy. I always especially <strong>avoid using inline styles on paragraph tags</strong>. You have have almost no control on the <strong>p</strong> tags anyway. Put everything you need in your <strong>td</strong> tags and leave your <strong>p</strong> tags clean.</p>
<p>So you might be thinking well then I&#8217;ll just add <strong>font-family</strong> declarations to all my <strong>td</strong> tags. Again this is slightly less messy, but still messy and our newsletters markup are awfully messy as it is. This is a place where you can <strong>use an embedded style</strong>. I know there are blanket rules like never user anything but inline styles, but this is not always the case, and blanket rules never benefit anyone. There are places for embedded styles, and they are even required in some cases for optimal cross client compatibility as I wrote about in &#8220;<a href="http://www.ianhoar.com/2008/12/06/outlook-2007-inline-styles-and-links/">Outlook 2007, inline styles, and links</a>&#8220;. The thing you must always remember when using embedded styles is that other email clients like Gmail are going to ignore them completely, so <strong>build in redundancies</strong>.</p>
<h2>Style the table data</h2>
<p>The fix is simple, you only need to declare your font-family twice. Use an inline style once in your <strong>table</strong>.</p>
<pre>&lt;table border="0" cellspacing="0" cellpadding="0" style="font-family:font-family:Verdana, Geneva, sans-serif;"&gt;
</pre>
<p>At the top of your page add this to your embedded style.</p>
<pre>&lt;style media="all" type="text/css"&gt;
td {
     font-family:font-family:Verdana, Geneva, sans-serif;
}
&lt;/style&gt;
</pre>
<p>Now you have made Outlook 2007 happy and given every <strong>td</strong> in your email newsletter a <strong>font-family</strong>. When the embedded style is stripped in other clients like Gmail you are still keeping the client happy, because <strong>other clients won&#8217;t ignore the font-family in the table tag</strong> and it will actually cascade throughout the document.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.ianhoar.com/2010/06/27/outlook-2007-losing-font-family-declaration/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Anchor links in Gmail and email newsletters</title>
		<link>http://www.ianhoar.com/2010/04/22/anchor-links-in-gmail-email-newsletters/</link>
		<comments>http://www.ianhoar.com/2010/04/22/anchor-links-in-gmail-email-newsletters/#comments</comments>
		<pubDate>Thu, 22 Apr 2010 23:25:10 +0000</pubDate>
		<dc:creator>Ian Hoar</dc:creator>
				<category><![CDATA[Email]]></category>
		<category><![CDATA[Google]]></category>
		<category><![CDATA[Tips]]></category>
		<category><![CDATA[email newsletters]]></category>
		<category><![CDATA[gmail]]></category>

		<guid isPermaLink="false">http://www.ianhoar.com/?p=3814</guid>
		<description><![CDATA[I usually recommend against using anchor links in email newsletters; the reason for this is twofold. First someone is viewing a newsletter their attention span is probably extremely short. They probably want to get onto their next email, but something has triggered their interest in your newsletter. Why waste that interest on jumping them further [...]]]></description>
			<content:encoded><![CDATA[<p><img class="alignleft size-full wp-image-3744" title="Gmail" src="http://www.ianhoar.com/wp-content/uploads/2010/03/gmail.png" alt="" width="128" height="128" />I usually recommend against using anchor links in email newsletters; the reason for this is twofold.</p>
<p>First someone is viewing a newsletter their attention span is probably extremely short. They probably want to get onto their next email, but something has triggered their interest in your newsletter. Why waste that interest on jumping them further down the email, this is your chance to <strong>grab their attention and hook them into your website</strong>. It may be your last change before they click onto their next email and your website is probably a much richer web experience anyway.</p>
<p><span id="more-3814"></span></p>
<p>The second reason is anchor links are just another thing that often goes wrong in email newsletters. They act unpredictable, and at the time of this writing, don&#8217;t even work properly in Gmail. I also remember a time when an anchor link would show a blank screen in Yahoo! Mail, although this has since been fixed.</p>
<p>Despite these reasons, using an anchor links in an email is usually not my decision to make, so I have to try and find a way to make it work. A regular anchor link like the one below will not work in Gmail.</p>
<pre><code class="html">&lt;a href="#section1"&gt;Section One&lt;/a&gt;</code></pre>
<p>However this will work.</p>
<pre>&lt;a href="#section1"&gt;&lt;span&gt;Section One&lt;/span&gt;&lt;/a&gt;</pre>
<p>Like many email newsletter hacks and tricks it&#8217;s a simple one, but can be frustrating and time consuming when trouble shooting it for the first time.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.ianhoar.com/2010/04/22/anchor-links-in-gmail-email-newsletters/feed/</wfw:commentRss>
		<slash:comments>5</slash:comments>
		</item>
		<item>
		<title>Yahoo! mail paragraph spacing still broken</title>
		<link>http://www.ianhoar.com/2010/03/23/yahoo-mail-paragraph-spacing-still-broken/</link>
		<comments>http://www.ianhoar.com/2010/03/23/yahoo-mail-paragraph-spacing-still-broken/#comments</comments>
		<pubDate>Wed, 24 Mar 2010 04:47:47 +0000</pubDate>
		<dc:creator>Ian Hoar</dc:creator>
				<category><![CDATA[Email]]></category>
		<category><![CDATA[Tips]]></category>

		<guid isPermaLink="false">http://www.ianhoar.com/?p=3755</guid>
		<description><![CDATA[Yahoo broke it&#8217;s paragraph spacing in HTML newsletters a long time ago and still hasn&#8217;t fixed it. Usually it&#8217;s Hotmail or Outlook 2007 that get all the flack for their wacky email newsletter behavior, but dropping paragraph spacing all together really takes the cake, that&#8217;s just bizarre. There&#8217;s the age old debate on email newsletters [...]]]></description>
			<content:encoded><![CDATA[<p><a href="http://www.ianhoar.com/wp-content/uploads/2010/03/yahoo_mail_broken.png"><img class="alignleft size-full wp-image-3756" title="Yahoo! Mail Broken" src="http://www.ianhoar.com/wp-content/uploads/2010/03/yahoo_mail_broken.png" alt="" width="200" height="200" /></a>Yahoo broke it&#8217;s paragraph spacing in HTML newsletters a long time ago and still hasn&#8217;t fixed it. Usually it&#8217;s Hotmail or Outlook 2007 that get all the flack for their wacky email newsletter behavior, but dropping paragraph spacing all together really takes the cake, that&#8217;s just bizarre. There&#8217;s the age old debate on email newsletters and whether they should even exist, but like it or not they are here to stay and there&#8217;s obviously a demand for them. Email clients should at least show the basic tags properly. That said if you make email newsletters like I do, you probably want to know how to fix this.</p>
<h2>Styling the paragraph tags</h2>
<p>Luckily at least with my tests you don&#8217;t need inline styles, so you can use an embedded style sheet at the top of the newsletter. If you have worked with email newsletters for awhile you probably already know that most styles should be made inline, but inlining paragraph tags can be tedious depending how man you have. This fix should work either embedded or inline, so it&#8217;s up to you which method you choose.</p>
<pre>p {
      margin-bottom:1em;
}
</pre>
<p><strong>Option 2:</strong></p>
<pre>&lt;p style="margin-bottom:1em;"&gt;Your paragraph&lt;/p&gt;
</pre>
<p>This should fix your Yahoo mail paragraph woes, at least until they <span style="text-decoration: line-through;">break</span> change something else.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.ianhoar.com/2010/03/23/yahoo-mail-paragraph-spacing-still-broken/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>The mailto syntax; A comma may not work in Outlook Web Access</title>
		<link>http://www.ianhoar.com/2009/12/03/the-mailto-syntax-comma-does-not-work-in-outlook-web-access/</link>
		<comments>http://www.ianhoar.com/2009/12/03/the-mailto-syntax-comma-does-not-work-in-outlook-web-access/#comments</comments>
		<pubDate>Fri, 04 Dec 2009 02:55:42 +0000</pubDate>
		<dc:creator>Ian Hoar</dc:creator>
				<category><![CDATA[Email]]></category>
		<category><![CDATA[Tips]]></category>
		<category><![CDATA[Tutorials]]></category>

		<guid isPermaLink="false">http://www.ianhoar.com/?p=3714</guid>
		<description><![CDATA[The mailto syntax is pretty simple, but sometimes you might run into problems with some mail clients (AKA Outlook Web Access). Most of them are very forgiving and you can drop a comma for example right into the body of the mailto and have no problems, but it&#8217;s better not to do that. It&#8217;s much [...]]]></description>
			<content:encoded><![CDATA[<p>The mailto syntax is pretty simple, but sometimes you might run into problems with some mail clients (AKA Outlook Web Access). Most of them are very forgiving and you can drop a comma for example right into the body of the mailto and have no problems, but it&#8217;s better not to do that. It&#8217;s much safer if you use <a href="http://en.wikipedia.org/wiki/Hexadecimal">hexadecimal</a> numeric values for your special characters. For example a comma is %2c and a space is %20.</p>
<p><span id="more-3714"></span></p>
<h2>Why do I care? It works in the email clients I tested!</h2>
<p>That&#8217;s fine and dandy, but your audience may be using a client you haven&#8217;t tested, one like say Outlook for web. I dealt with an issue like this recently where Outlook was truncating the body copy after the first comma appeared. It was a mailto confirming attendance to an event, so losing the copy was not very helpful for for the end user or the organizer trying to get responses. Now granted a web form would have been a better option, but time restraints resulted in using a simple mailto.</p>
<p>Lets quickly go over some of the mailto syntax.</p>
<p><strong>Subject</strong></p>
<pre>mailto:me@myaddress.com?subject=Hello</pre>
<p><strong>Body</strong></p>
<pre><strong></strong>mailto:me@myaddress.com?body=I will be attending the party, it should be a blast</pre>
<p><strong>Subject and Body</strong></p>
<pre>mailto:me@myaddress.com?Hello&amp;body=I will be attending the party, it should be a blast.</pre>
<p>There  are also <strong>CC</strong> and <strong>BCC </strong>values that you can drop into your mailto string.</p>
<p>These examples will work fine in most email clients, but not all. First if you want valid XHTML syntax your ampersands should be &amp;amp;. This should not affect your mailto functionality either way, but having valid markup is always a good thing. Second you should use hexadecimal values for your spaces and commas. Here&#8217;s an example of a safer mailto.</p>
<p><strong>Subject and Body</strong></p>
<pre>mailto:me@myaddress.com?Hello&amp;amp;body=I%20will%20be%20attending%20the%20party%2c%20it%20should%20be%20a%20blast%2E</pre>
<p>The only difference with this example is %20 for spaces and %2c for commas and 2E for a period. This example is much more bullet proof than the first example although you probably don&#8217;t need it for the period, but then again I thought the comma would be safe.</p>
<p>Another character you may need is a line break. %0A will give you a line break. Using two will give you a paragraph space.</p>
<pre>mailto:me@myaddress.com?Hello&amp;amp;body=I%20will%20be%20attending%20the%20party%2c%20it%20should%20be%20a%20blast%2E%0A%0AI will be bringing a guest too%21%2E</pre>
<p>If you are ever unsure of a character just drop it&#8217;s hex value in place of it. Most of the characters should work fine, but some like the comma will not. Others like spacing must be added if breaks are needed. You can easily <a href="http://www.ascii.cl/htmlcodes.htm">find hexadecimal code lists</a> all over the web, just remember to add the percent (%) symbol in front of the hex.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.ianhoar.com/2009/12/03/the-mailto-syntax-comma-does-not-work-in-outlook-web-access/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Outlook 2007, inline styles, and links</title>
		<link>http://www.ianhoar.com/2008/12/06/outlook-2007-inline-styles-and-links/</link>
		<comments>http://www.ianhoar.com/2008/12/06/outlook-2007-inline-styles-and-links/#comments</comments>
		<pubDate>Sat, 06 Dec 2008 18:04:56 +0000</pubDate>
		<dc:creator>Ian Hoar</dc:creator>
				<category><![CDATA[Code]]></category>
		<category><![CDATA[Email]]></category>
		<category><![CDATA[Frustration]]></category>
		<category><![CDATA[Microsoft]]></category>
		<category><![CDATA[Rant]]></category>
		<category><![CDATA[Tips]]></category>

		<guid isPermaLink="false">http://www.ianhoar.com/?p=3396</guid>
		<description><![CDATA[I recently discovered yet another weird Outlook 2007 bug with email newsletters. Every web designer has probably gone through the nightmare of Internet Explorer and then tried to explain to non-web people why it just plain sucks. Outlook 2007 raises the bar to a whole new level of awfulness, but enough with the ranting. If [...]]]></description>
			<content:encoded><![CDATA[<p><img class="alignright size-full wp-image-3397 thumbRight" title="Outlook 2007" src="http://www.ianhoar.com/wp-content/uploads/2008/12/outlook_2007.jpg" alt="" width="150" height="147" />I recently discovered yet another weird Outlook 2007 bug with email newsletters. Every web designer has probably gone through the nightmare of Internet Explorer and then tried to explain to non-web people why it just plain sucks. Outlook 2007 raises the bar to a whole new level of awfulness, but enough with the ranting.</p>
<p><span id="more-3396"></span></p>
<p>If you have been making email newsletters that work in the majority of email clients out there you already know this; if you want your work to display the way you intended in web based and stand alone email clients then you have to use inline styles and tables, and a lot of them. You would also be wise to ignore any modern CSS, because most of it won&#8217;t work. Inline styles work well for email clients that strip out all the embedded styles like Hotmail (also a Microsoft product). Hotmail has come a long way over the past 4 years, but unfortunately Outlook took several steps back when someone came up with the brilliant idea of using Word as the email render engine. Previous versions of Outlook are much easier to support. </p>
<h2>I&#8217;ve done everything right, why are my links turning purple when clicked!</h2>
<p>So you have your inline styles set up everywhere including on your links, but when you send out your deployment the links turn purple when clicked in Outlook 2007. This is Outlook ignoring your inline styles and applying the default link colour for visited links. If you have an embedded style at the top of the page, it will respect those. I had stopped using embedded styles all together since inline styles were much more reliable. The fix for this is to add your link styles back in the embedded style at the top of the page inside the head of your markup.</p>
<pre>&lt;style media="all" type="text/css"&gt;
a:link, a:visited {
     color:#64698c;
     text-decoration:none;
}
.sideBar a:link, .sideBar a:visited {
     color:#893d00;
     text-decoration:underline;
}
&lt;/style&gt;</pre>
<p>In this example all link styles are set to a specific colour and the second style sets a different set of colours for links within a sidebar class. All you really need to fix your Outlook link woes is the a:visited declaration, but it can&#8217;t hurt to add the links in there too.</p>
<h2>Inline styles are still king with email</h2>
<p>Remember, dont&#8217; get rid of your inline styles. One of the reasons I got rid of my embedded styles is because I could not tell when I was missing an inline style. This is a real pain for links, because using this fix will show your links as the right colour while working on the email. If you or others use editors to work on your HTML they will not add inline styles, so you must always remember to add them after. Again, the down side with this fix is now you cannot see which links you have missed. At the time of writing Gmail still strips out the embedded link styles and I&#8217;m sure a few other clients still do this too.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.ianhoar.com/2008/12/06/outlook-2007-inline-styles-and-links/feed/</wfw:commentRss>
		<slash:comments>5</slash:comments>
		</item>
		<item>
		<title>Outlook 2007 borders and 1px padding on table cells!</title>
		<link>http://www.ianhoar.com/2008/04/29/outlook-2007-borders-and-1px-padding-on-table-cells/</link>
		<comments>http://www.ianhoar.com/2008/04/29/outlook-2007-borders-and-1px-padding-on-table-cells/#comments</comments>
		<pubDate>Tue, 29 Apr 2008 23:59:01 +0000</pubDate>
		<dc:creator>Ian Hoar</dc:creator>
				<category><![CDATA[Bugs]]></category>
		<category><![CDATA[Code]]></category>
		<category><![CDATA[Email]]></category>
		<category><![CDATA[Frustration]]></category>
		<category><![CDATA[Microsoft]]></category>
		<category><![CDATA[Tips]]></category>
		<category><![CDATA[Tutorials]]></category>
		<category><![CDATA[email newsletters]]></category>

		<guid isPermaLink="false">http://www.ianhoar.com/?p=151</guid>
		<description><![CDATA[Anyone creating email newsletters on a daily basis will tell you how hard it is to get them to render properly in all email clients, but getting them to work in Outlook 2007 can be maddening as any quick Google search will show. Today I came across a bug that left me fuming. I could [...]]]></description>
			<content:encoded><![CDATA[<p>Anyone creating email newsletters on a daily basis will tell you how hard it is to get them to render properly in all email clients, but getting them to work in Outlook 2007 can be maddening as any quick Google search will show.</p>
<p>Today I came across a bug that left me fuming. I could not figure out why every single cell in my table heavy layout had a 1px padding around it and in some cases I was even missing my table borders. For those of you working in the sane world of web design, tables are a thing of the past, but in the world of email, tables are back with a vengeance.</p>
<p>As I became more and more disillusioned I started trying anything and stumbled across the fix. I knew I had to share this, so if you are experiencing any of the above, here is the fix and it&#8217;s a simple one.</p>
<p>Here&#8217;s an example of what a two cell table with an image and text would look like before the fix. Notice the 1px white border/padding around the table.</p>
<p><img title="Outlook no collapse" src="http://www.ianhoar.com/wp-content/uploads/2008/04/outlook_no_collapse.gif" alt="" width="202" height="44" /></p>
<p>And here is how it&#8217;s supposed to look after the fix. No white border / padding.</p>
<p><img title="Outlook collapse" src="http://www.ianhoar.com/wp-content/uploads/2008/04/outlook_collapse.gif" alt="" width="201" height="42" /></p>
<p>And the fix?</p>
<pre>table td {
    border-collapse: collapse;
}</pre>
<p>I don&#8217;t think I&#8217;ve ever even used this css before, but once I started grasping at straws I began to fiddle around with the CSS border attributes and tried it. I&#8217;ve never seen any browser or mail client except Outlook 2007 do this to table cells.</p>
<p>Here&#8217;s the full HTML from the example, and thank you Microsoft, for delivering the worst email rendering experience yet, we all thought Hotmail was bad, but you really stepped up to the plate!</p>
<pre>&lt;html&gt;
  &lt;head&gt;
  &lt;meta http-equiv="Content-Type" content="text/html; charset=utf-8" /&gt;
  &lt;title&gt;Outlook 2007 Test&lt;/title&gt;
  &lt;style media="all" type="text/css"&gt;
  table td {
    border-collapse: collapse;
  }
  &lt;/style&gt;
  &lt;/head&gt;
&lt;body&gt;
  &lt;table width="200" border="0" cellspacing="0" cellpadding="0" style="border:solid 1px #48463b;"&gt;
  &lt;tr&gt;
  &lt;td width="80"&gt;&lt;img src="http://yourserver/graphic.gif" width="80" height="40" alt="graphic"&gt;&lt;/td&gt;
  &lt;td width="120" style="background-color:#c1beb1; color:#ffffff; font-family:Verdana, Arial, Helvetica, sans-serif; text-align:center; font-size:11px;"&gt;Another column&lt;br&gt;
  plain text.&lt;/td&gt;
  &lt;/tr&gt;
  &lt;/table&gt;
&lt;/body&gt;
&lt;/html&gt;</pre>
<p>You may also want to check out my other entries on this topic.</p>
<ul>
<li><a href="http://www.ianhoar.com/2007/10/20/outlook-2007-when-is-200-pixels-not-200-pixels/">Outlook 2007 &#8211; When is 200 pixels not 200 pixels? Spacer gifs</a></li>
<li><a href="http://www.ianhoar.com/2008/03/07/email-design-and-deployment-quick-tips/">Email html design and deployment quick tips</a></li>
</ul>
]]></content:encoded>
			<wfw:commentRss>http://www.ianhoar.com/2008/04/29/outlook-2007-borders-and-1px-padding-on-table-cells/feed/</wfw:commentRss>
		<slash:comments>25</slash:comments>
		</item>
		<item>
		<title>Email html design and deployment quick tips</title>
		<link>http://www.ianhoar.com/2008/03/07/email-design-and-deployment-quick-tips/</link>
		<comments>http://www.ianhoar.com/2008/03/07/email-design-and-deployment-quick-tips/#comments</comments>
		<pubDate>Sat, 08 Mar 2008 01:17:46 +0000</pubDate>
		<dc:creator>Ian Hoar</dc:creator>
				<category><![CDATA[Design]]></category>
		<category><![CDATA[Email]]></category>
		<category><![CDATA[Frustration]]></category>
		<category><![CDATA[Tips]]></category>

		<guid isPermaLink="false">http://blog.imhmedia.net/2008/03/07/email-design-and-deployment-quick-tips/</guid>
		<description><![CDATA[I create a lot of emails campaigns on a regular basis. Creating emails that work in all the mail clients can be a daunting task, if not sometimes impossible. Unlike web pages, you have many more combinations of email clients and browsers that may view your email. Add the fact that many email clients are [...]]]></description>
			<content:encoded><![CDATA[<p>I create a lot of emails campaigns on a regular basis. Creating emails that work in all the mail clients can be a daunting task, if not sometimes impossible. Unlike web pages, you have many more combinations of email clients and browsers that may view your email. Add the fact that many email clients are blocking images, stripping CSS, or just outright ignoring all the great web standards we have worked towards for years, and you have a real mess.</p>
<p>There are some simple rules you can follow which should make life a lot easier. Testing of course is still required and many strange anomalies will pop up. Web based clients change without warning, so constant testing before every email deployment is a must. Below is a quick list of things to watch out for.</p>
<p><span id="more-115"></span></p>
<ul type="disc">
<li>Use tables, tables are your friend when it comes to email deployment.</li>
<li>Use spacer gifs, yes you heard me right, spacer gifs are far more reliable in the world of email clients. Also check out my entry &#8220;<a href="http://blog.imhmedia.net/2007/10/20/outlook-2007-when-is-200-pixels-not-200-pixels/">Outlook 2007 &#8211; When is 200 pixels not 200 pixels? Spacer gifs</a>&#8220;.</li>
<li>Use inline styles on your links and put all text styles inline in your &lt;td&gt; tags.</li>
<li>Don&#8217;t use UTF-8 encoding; you will get gibberish in some mail clients, use HTML entities when possible and Western European encoding, aka charset=iso-8859-1.</li>
<li>Try to avoid using images for text, especially titles or body copy as most clients are blocking images. This rule could vary depending on your target demographic. People      are probably more likely to turn on images for a game newsletter or tech savvy newsletter.</li>
<li>Have an online version available linked at the top of the email. e.g. &#8220;Trouble viewing this email? Try our online version&#8221;.</li>
<li>Avoid fancy CSS like position and float; stick to basic style attributes like font and padding, even margin will be removed sometimes.</li>
<li>Build white space margins into your images and use HTML align=&#8221;right&#8221; to align, not float.</li>
<li>Use background images sparingly, some clients remove them.</li>
<li>Try not to rely on doctypes, in fact I remove them so I can see how my emails will look without them, although you may find cases where you need them with earlier versions of Outlook.</li>
</ul>
<p>This list sounds pretty horrible and restricting if you are a standards compliant HTML coder like myself. You probably feel like you have just been kicked in the face and stepped into a time machine and the year is now 1996. This is the way the email world is. Just when you think one client is fixed something else comes along and destroys all hope. Hotmail was the worst client to support for a long time, but their new live mail isn&#8217;t half bad at rendering emails. Just as hotmail was fixed a new abomination arrived called Outlook 2007 which uses word to render all emails. You may want to check out my earlier entry titled &#8220;<a href="http://blog.imhmedia.net/2007/10/20/outlook-2007-when-is-200-pixels-not-200-pixels/">Outlook 2007 &#8211; When is 200 pixels not 200 pixels? Spacer gifs</a>&#8220;.</p>
<p>If you are new to email coding expect a lot of growing pains. Remember that redundancy is the key. For example, if you use a style like img { border:none; }, add an inline style=&#8221;border:none&#8221;, or even better yet use border=&#8221;0&#8243;. You may find issues with even simple HTML elements like &lt;div&gt; tags not working the way you expect. The culprit will most often be Outlook 2007, but these issues can crop up anywhere. Microsoft themselves doesn&#8217;t want to support Outlook 2007. Their official Xbox newsletters have a line at the top that says &#8220;Read this issue online if you can&#8217;t see the images or are using Outlook 2007.&#8221; That said you can usually get emails to look perfect in Outlook clients if you take the time and effort. There is however clients like Lotus Notes where you may have to sacrifice your design to the whims of client renderer.</p>
<p>The only real saving grace is that email is usually a fairly static medium, so you are not going to have to go around and update 500 pages and styles. If you do have dynamic email campaigns I recommend building and branding them dynamically with a server side language like php and then outputting the static files before sending them off to your deployment platform. Some platforms will also support dynamics builds.  At the end of the day, if you stick to HTML principals that worked in 1996 and mix in a bit of basic CSS you are probably going to be okay. Happy coding and please never use these tips for regular web pages.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.ianhoar.com/2008/03/07/email-design-and-deployment-quick-tips/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
		<item>
		<title>Outlook — creating OFT files for email newsletters</title>
		<link>http://www.ianhoar.com/2008/02/12/outlook-%e2%80%94-creating-oft-files-for-email-newsletters/</link>
		<comments>http://www.ianhoar.com/2008/02/12/outlook-%e2%80%94-creating-oft-files-for-email-newsletters/#comments</comments>
		<pubDate>Wed, 13 Feb 2008 00:15:58 +0000</pubDate>
		<dc:creator>Ian Hoar</dc:creator>
				<category><![CDATA[Email]]></category>
		<category><![CDATA[Microsoft]]></category>
		<category><![CDATA[Tips]]></category>
		<category><![CDATA[Tutorials]]></category>
		<category><![CDATA[email newsletters]]></category>

		<guid isPermaLink="false">http://blog.imhmedia.net/2008/02/12/outlook-%e2%80%94-creating-oft-files-for-email-newsletters/</guid>
		<description><![CDATA[OFT files are Outlook Templates, also sometimes called Outlook File Templates. You can make email templates from them, but as with most Microsoft products the quality can be quite flaky if you are not careful. I have had to create many OFT files for clients and if you go back in time and code to [...]]]></description>
			<content:encoded><![CDATA[<p>OFT files are Outlook Templates, also sometimes called Outlook File Templates. You can make email templates from them, but as with most Microsoft products the quality can be quite flaky if you are not careful. I have had to create many OFT files for clients and if you go back in time and code to 1996 web standards you can get them to look pretty decent.</p>
<p>There&#8217;s too ways to create OFT files. One is to save the email from the <strong>Save As </strong>menu and select OFT under the <strong>Save as type:</strong> drop down. This means you already have the email in your inbox, which means mailing the html with a 3rd party program.</p>
<p>There&#8217;s an easier way to do this which will allow you to skip the step of sending yourself the email. The OFT process could even be handed off to the business people that need the OFT.</p>
<p>Top menu go to,</p>
<blockquote><p><strong>View / Toolbars / Web</strong>.</p></blockquote>
<p>You should now have an input field at the top that says something like <strong>outlook:Inbox</strong></p>
<p>Here you can type / paste any web address and it will load the page in Outlook.  Once this is done, in the menu go to,</p>
<blockquote><p><strong>Actions / Send Web Page by E-mail</strong></p></blockquote>
<p>Now you will see the page in a new mail window. If the webpage was not to complex and created using tables, it should look okay. Pure css and more complex designs will not work at all and really shouldn&#8217;t even be considered for any email deployments. I&#8217;m a strong supporter of web standards, unfortunately some major email platforms are not.</p>
<p>The next step is to save the email as an OFT. Go to,</p>
<blockquote><p><strong>Giant windows bubble (AKA Office Button) /  Save As</strong></p>
<p>Select OFT, name the file and save.</p></blockquote>
<p>You should now have an OFT file. You can test this by double clicking it which will open Outlook. You can now edit the text and send to other people. OFT files can be a cheap internal alternative to full blown email deployments. I would only recommend OFT files for small internal newsletters. OFT&#8217;s may not work properly on other email clients and are proprietary.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.ianhoar.com/2008/02/12/outlook-%e2%80%94-creating-oft-files-for-email-newsletters/feed/</wfw:commentRss>
		<slash:comments>25</slash:comments>
		</item>
		<item>
		<title>Outlook 2007 &#8211; When is 200 pixels not 200 pixels? Spacer gifs</title>
		<link>http://www.ianhoar.com/2007/10/20/outlook-2007-when-is-200-pixels-not-200-pixels/</link>
		<comments>http://www.ianhoar.com/2007/10/20/outlook-2007-when-is-200-pixels-not-200-pixels/#comments</comments>
		<pubDate>Sat, 20 Oct 2007 05:05:05 +0000</pubDate>
		<dc:creator>Ian Hoar</dc:creator>
				<category><![CDATA[Bugs]]></category>
		<category><![CDATA[Code]]></category>
		<category><![CDATA[Email]]></category>
		<category><![CDATA[Frustration]]></category>
		<category><![CDATA[Microsoft]]></category>
		<category><![CDATA[Tips]]></category>
		<category><![CDATA[email newsletters]]></category>

		<guid isPermaLink="false">http://blog.imhmedia.net/2007/10/20/outlook-2007-when-is-200-pixels-not-200-pixels/</guid>
		<description><![CDATA[A large portion of my day is spent designing and marking up solicited email newsletters. I am also a very strong advocate of W3C Web Standards. For anyone who has ever worked on email newsletter, they will know all too well that the above sentences do not mix well. All web designer&#8217;s have faced the [...]]]></description>
			<content:encoded><![CDATA[<p>A large portion of my day is spent designing and marking up solicited email newsletters. I am also a very strong advocate of <a href="http://www.w3.org/"><acronym title="World Wide Web Consortium">W3C</acronym></a> Web Standards. For anyone who has ever worked on email newsletter, they will know all too well that the above sentences do not mix well.</p>
<p>All web designer&#8217;s have faced the many hurtles of browser compatibility. Getting things to work on multiple browser versions and browser types can be a real pain, but this is child&#8217;s play compared to the ever changing world of <acronym title="hypertext markup language">html</acronym> based email. I&#8217;m not going to talk about whether email should have ever been used as a medium to deliver rich content, there is plenty debate about that elsewhere. The fact of the matter is that html email is here, and it&#8217;s very popular.</p>
<p><span id="more-42"></span></p>
<p>For the past three years the number one hurtle for myself and the company I work at has been Microsoft&#8217;s web based email, Hotmail. This client ruthlessly tears apart your beautiful standards compliant html and leaves a broken mess behind.  Everything from requiring inline styles everywhere to removing all your margins, this beast has not been fun. Microsoft has now released Live Mail which is replacing Hotmail and is slightly better, but it is a tiny step in the right direction. I should also add that we have very little problems with Yahoo mail, and in general very little problems with most modern stand alone mail clients now.</p>
<p>Recently this has all changed. There is a new big, bloated and terrible mail client in town, and of course it&#8217;s also by Microsoft, and that client is Outlook 2007. Up until now, previous versions of Outlook supported both html and Word, but with Outlook 2007 only word is supported. Microsoft says this move is to standardise on one platform or something along those lines. I always thought that we as an industry had standardized on the W3C Standards, where have I been?</p>
<p>How do we deal with this new client? Rewind backward ten plus years in web design and we find ourselves in 1996 with minimal <acronym title="cascading style sheets">CSS</acronym>, hundreds of messy nested tables, and the mighty fix all spacer gif. For the most part I have managed to make my emails hold their integrity in Outlook 2007, although with much pain and suffering.</p>
<p>The other day I was working on an email newsletter when I found a very strange bug, or maybe it&#8217;s a feature, since every other broken or missing aspect of Outlook 2007 seems to be documented as a feature. Basically I needed 400 pixel wide rules to separate some teaser articles. In a normal world this would be done purely with CSS, but I have gotten into the habit of using spacers for everything in my newsletters now. Stretching spacer gif images with the html height and width attributes has been an old stand by for years that some of us like to call the &#8220;brute force method&#8221;. You can image my surprise when a pixel stretched to 400 pixels came out to be only 66 pixels wide.  After much head scratching I decided to run some tests which I will share with you here.</p>
<p>Basically Outlook 2007 at the time of this writing does not stretch 1 x 1 gif images past 66 pixels. At first I thought maybe this was a blanket rule to all spacers to stop the use of large pixel spacing. Why they would do this I don&#8217;t know, but it made more sense then what my testing further showed.</p>
<p>I decided I would try to stretch a 2 x 2 pixel gif to 200 pixels, the result was 131 x 131 pixel sized square. Now I don&#8217;t know what kind of funky math Outlook 2007 is using, but it&#8217;s not anything I have ever seen ever seen from any browser or email client to date.</p>
<p>Next I decided to try a 10 x 10 pixel stretched to 200 x 200. This resulted in the correct size. Below are two screenshots, one of the html in Firefox, and one in Outlook 2007.</p>
<p><strong>Firefox Browser screenshot</strong><br />
Everything looks as one would expect it to look. It should look like this in every browser and mail client ever to support inline images.<br />
<img src="http://blog.imhmedia.net/wp-content/uploads/2007/10/outlook_tests_firefox.gif" alt="" /></p>
<p><strong>Outlook 2007 screenshot</strong><br />
<img src="http://blog.imhmedia.net/wp-content/uploads/2007/10/outlook_tests.gif" alt="" /></p>
<p>My advice to anyone coding email newsletters with Outlook 2007, is to use larger sized spacer gifs, 10 x 10 px should probably do the trick. You can also squash these down to 1 x 1 px images in the html without problems. Happy coding.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.ianhoar.com/2007/10/20/outlook-2007-when-is-200-pixels-not-200-pixels/feed/</wfw:commentRss>
		<slash:comments>17</slash:comments>
		</item>
	</channel>
</rss>
