What tools to automatically inline CSS style to create email HTML code?

Pierre-Jean Coudert picture Pierre-Jean Coudert · Apr 26, 2009 · Viewed 89.3k times · Source

When you take a look at http://www.campaignmonitor.com/css/ you learn that you need to embed inline styles in your HTML, in order for your email to be read in any mail client.

Do you know any tools or script to automatically convert an HTML file with a declared in to an HTML file with only inline CCS style attributes ?

Edit: Any Javascript solution ( ie: http://www.robertnyman.com/2006/04/24/get-the-rendered-style-of-an-element/ ) ? With jQuery ?

Answer

Saleh Al-Zaid picture Saleh Al-Zaid · Apr 26, 2009

Check the premailer.dialect.ca online converter or this Python script to do it.