<?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>Luke Marsh - Web Developer</title>
	<atom:link href="http://www.lukemarsh.co.uk/index.php/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.lukemarsh.co.uk</link>
	<description>Just another WordPress weblog</description>
	<lastBuildDate>Thu, 17 Sep 2009 13:11:14 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=abc</generator>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
			<item>
		<title>Top 10 HTML email development tips</title>
		<link>http://www.lukemarsh.co.uk/index.php/top-10-html-email-development-tips/</link>
		<comments>http://www.lukemarsh.co.uk/index.php/top-10-html-email-development-tips/#comments</comments>
		<pubDate>Thu, 10 Sep 2009 14:01:42 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Uncategorized]]></category>

		<guid isPermaLink="false">http://www.lukemarsh.co.uk/?p=11</guid>
		<description><![CDATA[HTML emails are incredibly important when it comes to marketing campaigns. It's one of the cheapest and most successful ways to reach your clients.
<br />
I build HTML emails almost every day and I really don't mind it! I've compiled a list of my top 10 tips when it comes to building one:]]></description>
			<content:encoded><![CDATA[<p>HTML emails are incredibly important when it comes to marketing campaigns. It&#8217;s one of the cheapest and most successful ways to reach your clients.<br />
<br />
I build HTML emails almost every day and I really don&#8217;t mind it! I&#8217;ve compiled a list of my top 10 tips when it comes to building one:<br />
</p>
<h4>1) In the CSS block, start with these styles:</h4>
<p></p>
<div class="codesnip-container" >
<div class="css codesnip" style="font-family:monospace;">body<span class="sy0">,</span> table <span class="br0">&#123;</span><br />
&nbsp; &nbsp; <span class="kw1">font-family</span><span class="sy0">:</span>x<span class="sy0">;</span><br />
<span class="br0">&#125;</span><br />
body <span class="br0">&#123;</span><br />
&nbsp; &nbsp; <span class="kw1">background-color</span><span class="sy0">:</span> <span class="re0">#xxxxxx</span><span class="sy0">;</span><br />
<span class="br0">&#125;</span><br />
a<span class="re2">:focus</span><span class="sy0">,</span> <br />
a<span class="re2">:hover</span><span class="sy0">,</span> <br />
a<span class="re2">:active </span><span class="br0">&#123;</span> <br />
&nbsp; &nbsp; <span class="kw1">outline</span><span class="sy0">:</span><span class="kw2">none</span> <br />
<span class="br0">&#125;</span><br />
img <span class="br0">&#123;</span><br />
&nbsp; &nbsp; <span class="kw1">border-style</span><span class="sy0">:</span> <span class="kw2">none</span><span class="sy0">;</span><br />
&nbsp; &nbsp; <span class="kw1">display</span><span class="sy0">:</span> <span class="kw2">block</span><span class="sy0">;</span><br />
<span class="br0">&#125;</span></div>
</div>
<p>
Remember to add the CSS just underneath the opening body tag, not inside the head like you would when building a website.</p>
<h4>2) Contain the whole email in a table. To center the email, use align=â€centerâ€ in the table tag, not in the body tag.</h4>
<p></p>
<div class="codesnip-container" >
<div class="html4strict codesnip" style="font-family:monospace;"><span class="sc2">&lt;<a href="http://december.com/html/4/element/table.html"><span class="kw2">table</span></a> <span class="kw3">cellpadding</span><span class="sy0">=</span><span class="st0">&quot;0&quot;</span> <span class="kw3">cellspacing</span><span class="sy0">=</span><span class="st0">&quot;0&quot;</span> <span class="kw3">border</span><span class="sy0">=</span><span class="st0">&quot;0&quot;</span> <span class="kw3">style</span><span class="sy0">=</span><span class="st0">&quot;font-family:x;background-color:#xxxxxx;&quot;</span> <span class="kw3">width</span><span class="sy0">=</span><span class="st0">&quot;x&quot;</span> <span class="kw3">align</span><span class="sy0">=</span><span class="st0">&quot;center&quot;</span>&gt;</span></div>
</div>
<p>
Make sure to add all these elements in every table tag used in the HTML.<br />
Only use align=â€centerâ€ on the outer table or all your text will be center aligned!<br />
You must define a width, background colour and font on all tables.<br />
Remember that the width of the outer table must not exceed 550px.<br />
Always use tables as divâ€™s and spanâ€™s arenâ€™t supported in all email browsers.</p>
<h4>3) All table columns should be given a width and background colour:</h4>
<p></p>
<div class="codesnip-container" >
<div class="html4strict codesnip" style="font-family:monospace;"><span class="sc2">&lt;<a href="http://december.com/html/4/element/td.html"><span class="kw2">td</span></a> <span class="kw3">width</span><span class="sy0">=</span><span class="st0">&quot;x&quot;</span> <span class="kw3">bgcolor</span><span class="sy0">=</span><span class="st0">&quot;#xxxxxx&quot;</span>&gt;</span></div>
</div>
<p>
Remember to keep all the content inside the table cell on the same row.</p>
<h4>4) To style text, add the styles to the table cell and give it a class:</h4>
<p></p>
<div class="codesnip-container" >
<div class="html4strict codesnip" style="font-family:monospace;"><span class="sc2">&lt;<a href="http://december.com/html/4/element/td.html"><span class="kw2">td</span></a> <span class="kw3">width</span><span class="sy0">=</span><span class="st0">&quot;x&quot;</span> <span class="kw3">bgcolor</span><span class="sy0">=</span><span class="st0">&quot;#xxxxxx&quot;</span> <span class="kw3">class</span><span class="sy0">=</span><span class="st0">&quot;lorem&quot;</span> <span class="kw3">style</span><span class="sy0">=</span><span class="st0">&quot;font-size:xpx;color:#xxxxxx;line-height:xpx;font-weight:x;&quot;</span>&gt;</span></div>
</div>
<p>
Remember to repeat these styles in the CSS block at the top, like this:<br />
</p>
<div class="codesnip-container" >
<div class="css codesnip" style="font-family:monospace;"><span class="re1">.lorem</span> <span class="br0">&#123;</span><br />
&nbsp; &nbsp; <span class="kw1">font-size</span><span class="sy0">:</span>x<span class="sy0">;</span><br />
&nbsp; &nbsp; <span class="kw1">color</span><span class="sy0">:</span><span class="re0">#xxxxxx</span><span class="sy0">;</span><br />
&nbsp; &nbsp; <span class="kw1">line-height</span><span class="sy0">:</span>xpx<span class="sy0">;</span><br />
&nbsp; &nbsp; <span class="kw1">font-weight</span><span class="sy0">:</span>x<span class="sy0">;</span> &nbsp; <br />
<span class="br0">&#125;</span></div>
</div>
<p>
Always define the font size, colour and line-height for all text.<br />
Remember that text renders a lot smaller in Gmail than in all other email browsers.<br />
Text also needs space to breathe. Make sure thereâ€™s plenty of space vertically and horizontally in the table cell where you want the text to go.</p>
<h4>5) HTML character encoding â€“ Make sure that you hardcode HTML characters:</h4>
<p>
Find all codes <a href="http://www.tedmontgomery.com/tutorial/HTMLchrc.html">here</a></p>
<h4>6) To style links, add styles to the link tag and give it a class:</h4>
<p></p>
<div class="codesnip-container" >
<div class="html4strict codesnip" style="font-family:monospace;"><span class="sc2">&lt;<a href="http://december.com/html/4/element/a.html"><span class="kw2">a</span></a> <span class="kw3">href</span><span class="sy0">=</span><span class="st0">&quot;x&quot;</span> <span class="kw3">class</span><span class="sy0">=</span><span class="st0">&quot;ipsum&quot;</span> <span class="kw3">style</span><span class="sy0">=</span><span class="st0">&quot;color:#xxxxxx;text-decoration:underline;&quot;</span>&gt;</span></div>
</div>
<p>
If the link is inside a block of text, you only need to define the colour and whether or not you want it underlined.<br />
If the link is in a table cell on its own, you have to define the font-size and line-height in the table cell as mentioned in part 6.</p>
<h4>7) Only use .jpgâ€™s where necessary. Try to use as many .gifâ€™s as possible to reduce the size of the email</h4>
<p>
Try to use as few images as possible to make the size of the email smaller.<br />
The size of the HTML and images should be under 150kb if possible.<br />
Remember that itâ€™s easier to pass a spam test with fewer images.<br />
Optimise the .jpgâ€™s at 80% when exporting.</p>
<h4>8) When adding images to the email you have to define the width and height and add border-style:none and display:block:</h4>
<p></p>
<div class="codesnip-container" >
<div class="html4strict codesnip" style="font-family:monospace;"><span class="sc2">&lt;<a href="http://december.com/html/4/element/img.html"><span class="kw2">img</span></a> <span class="kw3">src</span><span class="sy0">=</span><span class="st0">&quot;images/x.gif&quot;</span> <span class="kw3">width</span><span class="sy0">=</span><span class="st0">&quot;x&quot;</span> <span class="kw3">height</span><span class="sy0">=</span><span class="st0">&quot;x&quot;</span> <span class="kw3">style</span><span class="sy0">=</span><span class="st0">&quot;display:block;border-style:none;&quot;</span> <span class="sy0">/</span>&gt;</span></div>
</div>
<p>
Remember that background images donâ€™t work in emails. Make sure live text isnâ€™t over a background image in the design.</p>
<h4>9) To create vertical spaces, use transparent .gifâ€™s with a defined height and a 1px width:</h4>
<p></p>
<div class="codesnip-container" >
<div class="html4strict codesnip" style="font-family:monospace;"><span class="sc2">&lt;<a href="http://december.com/html/4/element/img.html"><span class="kw2">img</span></a> <span class="kw3">src</span><span class="sy0">=</span><span class="st0">&quot;images/1&#215;8.gif&quot;</span> <span class="kw3">width</span><span class="sy0">=</span><span class="st0">&quot;1&quot;</span> <span class="kw3">height</span><span class="sy0">=</span><span class="st0">&quot;8&quot;</span> <span class="kw3">style</span><span class="sy0">=</span><span class="st0">&quot;display:block;border-style:none;&quot;</span> <span class="sy0">/</span>&gt;</span></div>
</div>
<p>
Donâ€™t stretch the images. If you need a vertical space of 10px, create a 1&#215;10px image.<br />
This is useful if you want to space blocks of text out.<br />
Try to stick to a naming convention for these e.g. 1&#215;8.gif.</p>
<h4>10) Before the email is finished, follow these steps:</h4>
<p>
Make sure the email passes the HTML validator. Ignore the bit about the style tag inside the body.<br />
Get the correct links. The links are the most important in spam tests so make sure you have all the links.</p>
<p>I test my emails in Hotmail, Gmail, Yahoo, Entourage, Outlook 2003 and 2007.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.lukemarsh.co.uk/index.php/top-10-html-email-development-tips/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>contact form</title>
		<link>http://www.lukemarsh.co.uk/index.php/contact-form/</link>
		<comments>http://www.lukemarsh.co.uk/index.php/contact-form/#comments</comments>
		<pubDate>Wed, 02 Sep 2009 21:09:58 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[noshow]]></category>

		<guid isPermaLink="false">http://localhost:8080/lukemarsh.co.uk/?p=5</guid>
		<description><![CDATA[]]></description>
			<content:encoded><![CDATA[<br />
<b>Warning</b>:  imagepng() [<a href='function.imagepng'>function.imagepng</a>]: Unable to open 'C:\Inetpub\vhosts\lukemarsh.co.uk\httpdocs/wp-content/uploads/wpcf7_captcha/498594655.png' for writing: Permission denied in <b>C:\Inetpub\vhosts\lukemarsh.co.uk\httpdocs\wp-content\plugins\really-simple-captcha\really-simple-captcha.php</b> on line <b>111</b><br />
<br />
<b>Warning</b>:  fopen(C:\Inetpub\vhosts\lukemarsh.co.uk\httpdocs/wp-content/uploads/wpcf7_captcha/498594655.php) [<a href='function.fopen'>function.fopen</a>]: failed to open stream: Permission denied in <b>C:\Inetpub\vhosts\lukemarsh.co.uk\httpdocs\wp-content\plugins\really-simple-captcha\really-simple-captcha.php</b> on line <b>116</b><br />
<div class="wpcf7" id="wpcf7-f1-p5-o1"><form action="/index.php/feed/#wpcf7-f1-p5-o1" method="post" class="wpcf7-form"><div style="display: none;"><input type="hidden" name="_wpcf7" value="1" /><input type="hidden" name="_wpcf7_version" value="2.0.2" /><input type="hidden" name="_wpcf7_unit_tag" value="wpcf7-f1-p5-o1" /></div><span class="wpcf7-form-control-wrap your-name"><input type="text" name="your-name" value="Name" class="text" size="40" /></span>
<span class="wpcf7-form-control-wrap your-email"><input type="text" name="your-email" value="Email address" class="wpcf7-validates-as-email text" size="40" /></span>
<span class="wpcf7-form-control-wrap your-subject"><input type="text" name="your-subject" value="Subject" class="text" size="40" /></span>
<span class="wpcf7-form-control-wrap your-message"><textarea name="your-message" cols="40" rows="10">Type your message here</textarea></span>
<input type="hidden" name="_wpcf7_captcha_challenge_captcha-box" value="498594655" /><img alt="captcha" src="http://www.lukemarsh.co.uk/wp-content/uploads/wpcf7_captcha/498594655.png" class="wpcf7-captcha-captcha-box" width="72" height="24" /><span class="wpcf7-form-control-wrap captcha-box"><input type="text" name="captcha-box" value="" class="text" size="40" /></span>
<input type="submit" value="Submit" class="button" /> <img class="ajax-loader" style="visibility: hidden;" alt="ajax loader" src="http://www.lukemarsh.co.uk/wp-content/plugins/contact-form-7/images/ajax-loader.gif" /><div class="wpcf7-response-output wpcf7-display-none"></div></form></div>
]]></content:encoded>
			<wfw:commentRss>http://www.lukemarsh.co.uk/index.php/contact-form/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>
