10 tips to code a better HTML e-mail

February 26th, 2012

Coding an e-mail is not an easy thing. Just like building a website and ensuring the cross-browser rendering, you must work the same way on your HTML template. Gmail and Hotmail don’t interprate the code similarly, same for Yahoo and most of the e-mail clients (i.e Thunderbird, Outlook, Mail, . .). The rendering on Outlook can also turn into a nightmare: the 2003, 2007, 2010 versions are using different ways to display the HTML.

A general rule is to keep your code (very) simple and standard-compliant.

1. Use and abuse of tables

Web clients are not really up to date in terms of HTML. Most of your code has to be done in HTML1. So to structure the layout of your e-mail, you have to use tables, raws and cells: <table>, <tbody>, <tr> and <td>.

No more div, limit the usage of <span> to the minimum, don’t stack elements (z-index property, PNG format don’t work in e-mails): Keep it simple!

2. Use inline CSS

It is common practice to not use a CSS file, or put the CSS in the <head> but instead inline CSS. Again, the mail clients are not like web browsers.

3. Detail your CSS in every <td> tag

Even if it results to a longer file, try not to optimize the code with short writting. Some e-mail clients may not take into account the inherited properties, so be sure to write your inline css wherever it’s necessary.

Example:

DO’s: <td style=”background-color: #FFFFFF; padding-bottom: 15px; padding-top: 15px;>
and
DON’T's: <td style=”background-color: #FFFFFF; padding:15px 0px;>

4. Avoid the <p> issue

Hotmail (and some others) adds a break line after every paragraph. If it breaks your design, try to avoid using paragraph tags by playing with the tables and <br>.

DO’s: <td>text text text text<br><br>text text text<br><br>
and
DON’T's: <td><p>text text text</p> <p>text text text</p></td>

5. Avoid the color and border issue

Some of the webmails (Yahoo, Gmail, especially) add a default color to hyper links, and default border to images. Define systematically a border:none; in your style, and a color:#yourcolor; in your <a> tag. Unless you like the default border style given by the email client.

DO’s: <img border=”0″ src=”http://yourdomain.com/yourimage.jpg” alt=” ” width=”285″ height=”150″>
and
DON’T's: <img src=”http://yourdomain.com/yourimage.jpg” alt=” ” width=”285″ height=”150″>

6. Height and width of images

Never forget to set up the size of your image. It will maintain the general layout even if the images are blocked.

DO’s: <img border=”0″ src=”http://yourdomain.com/yourimage.jpg” alt=” ” width=”285″ height=”150″>
and
DON’T's: <img border=”0″ src=”http://yourdomain.com/yourimage.jpg” alt=” “>

Also prefer JPG to PNG, it works better.

7. Use padding rather than margin

Hotmail and some others don’t take into account the margin, try to replace them with padding. Also define to “0″ the cellspacing and the cellpadding, as it is not the default style in some e-mail clients.

DO’s: <table width=”610″  cellpadding=”0″  cellspacing=”0″ style=”color:#333333; padding-top:16px;”></table>
and
DON’T's <table width=”610″ style=”style=”color:#333333;”></table>

8. No relative URLs

Most of the e-mail clients won’t download the images if you use relative URLs. So make sure you always use absolute URLs of images stored on a web server.

DO’s: <img border=”0″ src=”http://yourdomain.com/folder/yourimage.jpg” alt=” ” width=”285″ height=”150″>
and
DON’T's: <img border=”0″ src=”folder/yourimage.jpg” alt=” ” width=”285″ height=”150″>

9. Don’t forget the alt text

As mentionned above most of the e-mail clients (web or not) block by default the images you insert in your e-mail. It is really important to take this into account as a lot of your database recipients won’t download the images. While you are building your template it is necessary to take this factor into account.

So do not forget the “alt” in your <img> tag as this is the first element people will see when opening the e-mail. Make sure this alternative text is visible.

Even if it is not relevant to add an alternative text, (shadow image, separation image), put an empty one.

10. Test, test and test again

Last but not least, test your e-mails on every clients (embed or online) you can. Also do not forget to work on a text version and to check the display when images are blocked.

Want more information about the different clients and best practices? Visit the following websites:
http://www.campaignmonitor.com/css/
http://www.email-standards.org/
http://mailchimp.com/resources/

Google Plus – The next Wave ?

July 17th, 2011

I have been testing Google + for two weeks now. It is now time to blog.

I have a profound respect for Google and its products (or at least most of them). However I think it is legitimate to wonder about a future success (or fail) of Google +. It is the third attempt of the company in the social media area, widely dominated by Facebook. The two first (Wave and Buzz) failed pretty quickly, remember ?

May 2009 – the world discovers Google Wave at Google I/O. A great technical demonstration: everybody remember the drag and drop files from the desktop directly in the web browser. Following the announcement and the presentation, the web was all excited about this new service, a lot of people were talking about Wave as the new e-mail (they were somehow right because at first the intention of Google was to replace the e-mail protocol with this new one).

September 2009 – Google officially launched Wave based on an invitation system (like Gmail). I remembered getting one pretty quicly and sending a tweet to propose the 5 remaining invitations I had. It was given away in 15 minutes.

October 2009 -  nobody was talking about Wave any more. And in December 2010 Google announced that end of 2011 they will stop the support of wave.google.com due to the lack of adoption by the public. The project is now called Wave in a Box and has become a server based product developed  by the Apache Software Foundation.

Almost the same happened for Google Buzz.

But history apparently is not repeating, I think Google + had a way better start than the 2 others (As of today, more than 10 millions users already).

User Interface
The product itself is well thinked, the UI is great (thanks Andy Hertzfeld for the circles). A clean news feed, no advertising or notifications coming from applications, it goes straight to the point. The newsfeed contains the essential information, you can easily switch from the feed of your friends to the one of people you are following. You also have a better control over the information (See privacy issue below): you can disable resharing, comments on what you post, comments can be edited, . . .

Integration with Google products
The direct integration with most of the google products is certainly  a major advantage for the new born social network: once you have logged in with your google account, the notifications appear on the top bar, which was not the case for Google Buzz. Since a lot of people already use the google tools (Gmail especially with more than 150 millions users) it gives a direct and huge exposure. Your Google profile is directly integrated into Google plus, you can start fast on the social network. Picasa, Google Maps, Google Chat, . . . also integrated.

Privacy issue
Google apparently has learned from the mistakes of Buzz. The privacy issue that has encountered Facebook for the last 3/4 years should not happened on Google Plus, the circles allow an easy management of the information rules and access. Drag and drop the people in the right circle, depending on your relations with them: easy, really intuitive and fast. It allows you to follow people like Larry Page for their news while being in touch closely with your friends.

And more: Hangout for group videos, Sparks as a recommendation engine,  Huddle for group texting.

So with all those features why Google Plus would fail ? Maybe because everybody is already on Facebook. . .

That is without a doubt the biggest threat. In fact I don’t believe that G+ is disruptive enough to make people quit Facebook, at least for the moment. However a certain number of people will have both, just like most of the people on Twitter are also on Facebook.

Google is working on new features, and especially social gaming: they invested between 100 and 200 millions in Zynga (FarmVille, Mafia Wars, . . )beginning of July. How disruptive will this be?

Is group buying a bubble?

June 11th, 2011

Group buying has been a huge trend since 2 years, and still is…

A lot of acquisitions, fund raisings and money around this kinda new business model.

About acquisitions, remember! Back in April 2010, Citydeal, a group buying website created by the european rockstars of Internet, the Samwer brothers (Alando, Jamba!, StudiVZ ..), was sold to Groupon for an estimated amount of USD 100 Millions. That is 25 times the supposed starting investment: Citydeal has been running for just 5 months, they started in January 2010 with an initial funding of 4 millions EUR.

On the valuation side, it is also crazy. As I am writing, Groupon is now worth USD 25 billions! It has been declared fastest growing company ever by the New York Times. Living Social, its main competitor is worth USD 3 Billions after raising USD 175 milions and partnered with Amazon.

I don’t think so much valuation has been created that fast since Internet  exists., even in early 2000′s. So is Group Buying just a trend, a huge bubble that will explode like a frog imitating an ox? Are the investors some kind of modern Icarus that all want a piece of the group buying cake and will burn their wings, crashing the ROI on the floor?

Maybe…

Because at the first glance the Group Buying market is really liquid: no entry barrier, no technological advantage. Even the supposed first mover advantage is not a real one: in Hong Kong Beecrazy is almost as big as Groupon (formely UbuyIbuy) starting 3 months after them (and we all know that 3 months is a lot of time in this space). The Porter forces are all against this business model:

The threat of the entry of new competitors: So much Group Buying out there! You can get the whole source code to set up a group buying website for USD500 (and that’s an expensive one!)

The threat of substitute products or services: Indirect competition is strong: all form of existing online and print couponing, mobile couponing is rising fast, flash sales are also sky rocketing.

The bargaining power of customers: big since they just have to visit a daily deal aggregator to choose what they want.

The bargaining power of suppliers: some people argue that the e-mail database matters, putting Groupon in a very good position. Maybe true but in the end it is still a local business so a website with a smaller but well qualified database can compete. And I am not even mentionning the margin competition. Groupon takes a cut of 50%, that leaves some room for competitors to drop their margin in order to be more aggressive.

The intensity of competitive rivalry: huge! I think it is pretty clear.

And time will pass by, SMB will be tired of getting their margin cut by 80% when doing business with Groupon or others, after trying for the first time they won’t redo the deals. People will get rid of this bunch of marketing e-mail, they will report as spam the no-reply@groupon.com and the no-reply@livingsocial.com. 2013 will arrive and no more partners will accept to be featured on a Group Buying website, no more people will subscribe to the database of daily deals websites.

All this tend to answer yes, Group Buying is just a screen smoke that will desappears really quickly, in a snap, in a second, in a wink.

Or maybe not…

The Group Buying is just a part of something bigger: the rise of small and medium businesses on Internet. Let me explain: 90′s, Internet arrives on the mass market,with  only big groups and brands activ on it. For Small and Medium Business the only option was to build a website that was alone in the dark: 5 static pages, a contact form. Then came Adsense and alleluyah! SMB were able to purchase advertising on Internet, promote their products and websites, but still … that was pretty much all.

And since 2009 a lot of thing happened for SMB on Internet: Facebook Pages, Twitter, Foursquare checkin, Group Buying, Hyper Local News websites, Mobile advertising, Geolocation, Google Places and more and more. Now SMB can spend money on Internet to advertise, that was not the case before. They are more and more educated about marketing, advertising budget which means more money for businesses like Groupon, Foursquare, and Local Ads Network.

So the Group Buying is just a piece of this huge market: the rise of the retails and SMB on Internet. It will find its sustainable place among others advertising solutions for SMB, the market will be structured by websites closing their doors and acquisitions for others leaving 3 to 4 big global players and a bit more of specialized daily deals websites like niche players, very local ones, . . .

Choose your side…. Despite all the things written above I am running for the second one.

Groupon IPO is planned for 2012, we will see how it goes :)

Finished

May 2nd, 2011

Finally!

After some hours of (intense!) coding, the 1.0 version of the theme is ready. Now I just have to feed the blog with some nice content, bright articles and relevant subjects…

Easy peasy!

Navenby

April 29th, 2011

Navenby (pronounced /ˈneɪvənbi/) is a village and civil parish in Lincolnshire, England. Lying 8.7 miles (14 km) south of Lincoln and 8.9 miles (14 km) north-northwest of Sleaford, Navenby has a population of 1,666 and is a dormitory village for Lincoln. It forms part of the North Kesteven local government district.

A Bronze Age cemetery has been discovered in the village, as well as the remains of an Iron Age settlement. Historians also believe Navenby was a significant staging point on the Roman Ermine Street, as the Romans are reported to have maintained a small base or garrison in the village. Navenby became a market town after receiving a charter from Edward the Confessor in the 11th century. The charter was later renewed by William Rufus, Edward III and Richard II. When the market fell into disuse in the early 19th century, Navenby returned to being a village.[1][2]

The civil parish of Navenby is rural, covering more than 2,100 acres (850 ha). It straddles Ermine Street, a Roman road built between 45 and 75 AD, which runs between London and York.[3] The Viking Way, a 147-mile (237 km) footpath between the Humber Bridge in North Lincolnshire and Oakham in Rutland, also cuts through the village. The Vikings exerted great influence over Lincolnshire in the 9th and 10th centuries, as can be seen in the many local place names ending in -by, such as Navenby. Names ending with -by meant homestead or village.