<?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>Mon, 16 Jan 2012 03:51:52 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3.1</generator>
		<item>
		<title>Creating email newsletter margins with tables</title>
		<link>http://www.ianhoar.com/2011/03/27/creating-email-newsletter-margins-with-tables/</link>
		<comments>http://www.ianhoar.com/2011/03/27/creating-email-newsletter-margins-with-tables/#comments</comments>
		<pubDate>Mon, 28 Mar 2011 01:08:20 +0000</pubDate>
		<dc:creator>Ian Hoar</dc:creator>
				<category><![CDATA[Email]]></category>
		<category><![CDATA[tips]]></category>
		<category><![CDATA[Tutorials]]></category>
		<category><![CDATA[email newsletters]]></category>
		<category><![CDATA[Gmail]]></category>
		<category><![CDATA[Outlook]]></category>

		<guid isPermaLink="false">http://www.ianhoar.com/?p=4250</guid>
		<description><![CDATA[This may seem painfully obvious to some, especially the more seasoned old school table based web designers out there, but I&#8217;m still amazed at how many email newsletters don&#8217;t render properly in my inbox. Remember when it comes to email newsletters tables are king and web standards go out the window! It sucks, but that&#8217;s [...]]]></description>
			<content:encoded><![CDATA[<p><img class="alignleft size-full wp-image-4260" title="Creating email newsletter margins with tables" src="http://www.ianhoar.com/wp-content/uploads/2011/03/tool_kit-e1301273715243.png" alt="Creating email newsletter margins with tables" width="200" height="200" />This may seem painfully obvious to some, especially the more seasoned old school table based web designers out there, but I&#8217;m still amazed at how many email newsletters don&#8217;t render properly in my inbox. Remember <strong>when it comes to email newsletters tables are king and web standards go out the window!</strong> It sucks, but that&#8217;s the way it is, so lets move on.</p>
<p><span id="more-4250"></span></p>
<h2>Use tables everywhere</h2>
<p>And I do mean everywhere, I can&#8217;t stress this enough, <strong>tables are your friend</strong> when it comes to email newsletters. They will ease much suffering, so use them everywhere. The all mighty <strong>spacer gif is your next best friend</strong> when it comes to table based design, and <strong>style=&#8221;display:block&#8221; is your third best friend</strong>. Here&#8217;s why.</p>
<h2>Margins don&#8217;t work in email newsletters!</h2>
<p>Margins are one of the most important css styles used today along with padding. Some email clients strip out margins and padding can be very flaky in others, so what are you to do? You can start by not using them at all. Don&#8217;t bother trying to style your paragraph tags either, I always stress letting them default to whatever the email client likes to do with them. Forcing them to do what you want will probably look wonky in some mail clients. Leave them alone and don&#8217;t bother with margins or padding, it&#8217;s less work for you and your email newsletters will look better for it. You will never have the control you have with web pages.</p>
<p>Suppose we want this example below.</p>
<p><img class="aligncenter size-full wp-image-4254" title="Email Newsletter" src="http://www.ianhoar.com/wp-content/uploads/2011/03/email_newsletter.jpg" alt="Email Newsletter" width="710" height="560" /></p>
<p>In a normal webpage this is a padding div with text and a second div floated right with CSS margins and a paragraph of text  for the caption. In the email world it looks like this.</p>
<p><img class="aligncenter size-full wp-image-4256" title="email newsletter with tables" src="http://www.ianhoar.com/wp-content/uploads/2011/03/email_newsletter_table.jpg" alt="email newsletter with tables" width="710" height="580" /></p>
<p>Red represents an outer table and green represents an inner table. In a real world example of a robust email newsletter you would most likely have far more nested tables then this, but this illustrates our need for tables. Each corner table has a 20&#215;20 pixel, and the inner green table is aligned to the right. A great tool to illustrate this in real time with your own work is the <a href="https://addons.mozilla.org/en-us/firefox/addon/web-developer/">Web Developer Firefox addon</a> by <a href="http://chrispederick.com/">Chris Pederick</a>, which allows you to outline your tables within the browser amongst many other things.</p>
<h2>Table based layout tips</h2>
<p>Remember that a spacer gif should be a 10&#215;10 pixel by default and then stretched to the desired size even if that size is less than 10&#215;10. <a href="http://www.ianhoar.com/2007/10/20/outlook-2007-when-is-200-pixels-not-200-pixels/">A 1&#215;1 pixel will not stretch properly in some versions of Outlook</a> due to a very strange bug.</p>
<p>Each spacer gif should also have an inline style of <strong>style=&#8221;display:block&#8221;</strong>. Many email clients like Gmail will leave white space below all your images making your layout look messy. This same rule applies to visual images, especially if the email is image heavy as you will have white lines caused by space below all the images if you forget to add this to all your images.</p>
<p>When using tables don&#8217;t forget <a href="http://www.ianhoar.com/2010/06/27/outlook-2007-losing-font-family-declaration/">how fonts work with different email clients</a>. Newer versions Outlook for example will not cascade your fonts properly when used in tables, and clients like Gmail will rip out your embedded styles. The solution to this is to use both methods only once eliminating the need to splash font family and font sizes throughout your email newsletters.</p>
<p>With patience it&#8217;s possible to make email newsletters that work in many email clients and are somewhat clean at the same time. Look at email newsletters as yet another exciting challenge to conquer and you might not pull all your hair out. Happy coding.</p>
<p>&nbsp;</p>
]]></content:encoded>
			<wfw:commentRss>http://www.ianhoar.com/2011/03/27/creating-email-newsletter-margins-with-tables/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
		<item>
		<title>Outlook email newsletters and the AutoPreview pane</title>
		<link>http://www.ianhoar.com/2011/03/07/outlook-email-newsletters-and-the-autopreview-pane/</link>
		<comments>http://www.ianhoar.com/2011/03/07/outlook-email-newsletters-and-the-autopreview-pane/#comments</comments>
		<pubDate>Tue, 08 Mar 2011 01:43:32 +0000</pubDate>
		<dc:creator>Ian Hoar</dc:creator>
				<category><![CDATA[Email]]></category>
		<category><![CDATA[Microsoft]]></category>
		<category><![CDATA[tips]]></category>
		<category><![CDATA[email newsletters]]></category>
		<category><![CDATA[Outlook]]></category>

		<guid isPermaLink="false">http://www.ianhoar.com/?p=4226</guid>
		<description><![CDATA[Cranking out email newsletters for Microsoft Outlook can be a pain, but if you are in the web business you may have to crank out the occasional email newsletter, and of course Outlook has a major market share. If you use Outlook you may know of the AutoPreview feature. This is a preview pane below [...]]]></description>
			<content:encoded><![CDATA[<p><img class="alignleft size-full wp-image-4232" title="Outlook 2010" src="http://www.ianhoar.com/wp-content/uploads/2011/02/Outlook_2010.png" alt="" width="200" height="195" />Cranking out email newsletters for Microsoft Outlook can be a pain, but if you are in the web business you may have to crank out the occasional email newsletter, and of course Outlook has a major market share. If you use Outlook you may know of the AutoPreview feature. This is a preview pane below the actual title that gives you the first few lines of content within the email. In many email newsletters you will get something like &#8220;View the online version of our newsletter&#8221;. This is probably not what you want to show up in the Outlook AutoPreview, and the way around it is quite simple. It&#8217;s also another chance to entice your audience into opening your email newsletter.</p>
<p><span id="more-4226"></span></p>
<p>Since Outlook reads the first few lines of text in your email for it&#8217;s preview text, you must have those words at the top. Obviously the top of an email usually doesn&#8217;t have anything important in it that would suit being in the AutoPreview. This area is usually reserved for links to the online version and instructional text. The way around this is to put the content you want at the top of your Email Newsletter and then hide it from displaying. The AutoPreview pane will still show it, so now you can have something like &#8220;In this summer issue of our fantastic newsletter we talk about Outlook and it&#8217;s AutoPreview&#8230;&#8221; Here&#8217;s how you can do it with some simple CSS.</p>
<pre>&lt;div style="display:none;"&gt;In this summer issue of our fantastic newsletter
we talk about Outlook and it's Auto Preview..."&lt;/div&gt;</pre>
<p>Below this you can add your view online and sign up for this newsletter links, but the hidden content must appear first. One word of caution, at the time of this writing the hidden text actually appears unhidden in Gmail&#8217;s actual email. This is not necessarily a deal breaker if Outlook is a your target audience, and the overall email will still look fine in Gmail.</p>
<p>Here is what the AutoPreview pane will look like.</p>
<p><img class="aligncenter size-full wp-image-4245" title="Outlook auto preview" src="http://www.ianhoar.com/wp-content/uploads/2011/03/outlook_auto_preview.png" alt="Outlook auto preview" width="539" height="118" /></p>
<p>As you can see the other content below will still show up if there is room, but hopefully you can grab the users attention with the first line. Remember that the <strong>email title</strong> is still the most important element when trying to engage a reader because that is what most of the readers will see. The AutoPreview is often used just to avoid having content appear that you may not want to show up before the user has viewed the full email.</p>
<p>One other caveat is that this hidden text could possibly look spamy to some mail clients, but I have yet to see a line of hidden text trigger a spam filter and I have tested many email clients using this technique.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.ianhoar.com/2011/03/07/outlook-email-newsletters-and-the-autopreview-pane/feed/</wfw:commentRss>
		<slash:comments>4</slash:comments>
		</item>
		<item>
		<title>Creating OFT templates for Outlook 2010</title>
		<link>http://www.ianhoar.com/2011/02/06/creating-oft-templates-for-outlook-2010/</link>
		<comments>http://www.ianhoar.com/2011/02/06/creating-oft-templates-for-outlook-2010/#comments</comments>
		<pubDate>Sun, 06 Feb 2011 18:28:53 +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>
		<category><![CDATA[OFT]]></category>
		<category><![CDATA[Outlook]]></category>

		<guid isPermaLink="false">http://www.ianhoar.com/?p=4230</guid>
		<description><![CDATA[I wrote an article a few years ago on creating OFT files for Outlook. This was written for Outlook 2007, and since then, Outlook 2010 has been released and things have changed. The ability to view web pages within Outlook 2010 has been removed and the UI has also been redone, but fear not, the [...]]]></description>
			<content:encoded><![CDATA[<p><img class="alignleft size-full wp-image-4232" title="Outlook 2010" src="http://www.ianhoar.com/wp-content/uploads/2011/02/Outlook_2010.png" alt="" width="200" height="195" />I wrote an article a few years ago on <a href="http://www.ianhoar.com/2008/02/12/outlook-%E2%80%94-creating-oft-files-for-email-newsletters/">creating OFT files for Outlook</a>. This was written for Outlook 2007, and since then, Outlook 2010 has been released and things have changed. The ability to view web pages within Outlook 2010 has been removed and the UI has also been redone, but fear not, the ability to make OFT files still exists, although it&#8217;s not as straight forward as it used to be.</p>
<p><span id="more-4230"></span></p>
<p>After looking everywhere for a way to load a web page within Outlook 2010, I finally checked Microsoft&#8217;s site only to find out that this ability had been removed entirely. I started thinking about other ways to get a page into Outlook without using a 3rd party mailer application. That&#8217;s when I fired up Internet Explorer and found the <strong>Send Page by e-mail </strong>option. The good news is after several tests the results seem to be the same. To send the HTML to Outlook I used Internet Explorer 8. I&#8217;m not sure if other browsers can do the same, but since this is a proprietary MS format it&#8217;s probably best to stick with IE.</p>
<p>In Internet Explorer go to:</p>
<blockquote><p>File / Send / Page by E-mail&#8230;</p></blockquote>
<p>If you have Outlook 2010 as your default mail client it should automatically load with the page embedded into an email message. Now one would think that by now all you would have to do is save the email as an OFT and be done with it, but for some reason every time I tried this the resulting OFT was a blank file. The trick is to <strong>email the message to yourself</strong> and then save it as an OFT. Don&#8217;t forget to change the <strong>subject title</strong> to whatever you would like the OFT to read.</p>
<p>In Outlook 2010 go to:</p>
<blockquote><p>File / Save As</p>
<p>Select Outlook Template under Save as type:</p></blockquote>
<p>Now you should have an OFT that will work just as 2007 templates worked. Remember when creating OFT files there are many limitations, and tables and spacer GIFs are a must for any remotely complex layouts. Check out the related posts below for more Outlook tips and tricks.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.ianhoar.com/2011/02/06/creating-oft-templates-for-outlook-2010/feed/</wfw:commentRss>
		<slash:comments>5</slash:comments>
		</item>
		<item>
		<title>Email newsletters in Lotus Notes and table&#160;width</title>
		<link>http://www.ianhoar.com/2010/11/24/email-newsletters-in-lotus-notes-and-table-width/</link>
		<comments>http://www.ianhoar.com/2010/11/24/email-newsletters-in-lotus-notes-and-table-width/#comments</comments>
		<pubDate>Thu, 25 Nov 2010 03:15:50 +0000</pubDate>
		<dc:creator>Ian Hoar</dc:creator>
				<category><![CDATA[Email]]></category>
		<category><![CDATA[tips]]></category>
		<category><![CDATA[Tutorials]]></category>
		<category><![CDATA[email newsletters]]></category>

		<guid isPermaLink="false">http://www.ianhoar.com/?p=4185</guid>
		<description><![CDATA[Lotus Notes, or Locust Notes as some of my colleagues like to call it is probably the hardest email client in wide use to code for. Depending on which version you are trying to support, you may be in for a real nightmare. I recently marked up a very basic email newsletter that had to [...]]]></description>
			<content:encoded><![CDATA[<p><img class="alignleft size-full wp-image-4197" title="Lotus Notes" src="http://www.ianhoar.com/wp-content/uploads/2010/11/lotus_notes_logo.jpg" alt="Lotus Notes" width="200" height="194" />Lotus Notes, or Locust Notes as some of my colleagues like to call it is probably the hardest email client in wide use to code for. Depending on which version you are trying to support, you may be in for a real nightmare. I recently marked up a very basic email newsletter that had to work in Lotus Notes 6.5 and I still had a lot of trouble getting it to work. The same rules apply to Lotus as that of Outlook 2007, build your emails with a slew of tables and spacer gifs and use as little CSS as possible, this is especially true for older versions of Lotus notes. I wanted to share one particularly nasty bug that I squashed, and that is how Lotus deals with table widths.</p>
<p><span id="more-4185"></span></p>
<h2>Lotus Notes sometimes extends table width to 100%</h2>
<p>I had an email campaign where the email took up 100% of the client window even though I had a width specified in the main table containing all other tables. The fix was quite easy to implement, but still very annoying. It turns out that lower versions of Lotus Notes need a width on every table. Often I will use a single main table to contain my other tables and then just use spacer gifs to set the widths of the tables within. Any table without a width specified is assumed to be 100% regardless of the parent, so the fix is to put a width into every single table you use. It&#8217;s also better to use the HTML width attribute and not inline CSS. Once again non-standard engines take us back to the dark ages. I hope this saves some hair pulling for someone.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.ianhoar.com/2010/11/24/email-newsletters-in-lotus-notes-and-table-width/feed/</wfw:commentRss>
		<slash:comments>3</slash:comments>
		</item>
		<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: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>3</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, when 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 [...]]]></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, when 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 chance 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>8</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>9</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>45</slash:comments>
		</item>
	</channel>
</rss>

