Emogrifier – Convert HTML & CSS into Gmail Friendly Emails

John Reeve | August 11th, 2008 | , , ,

EmogrifierWhile working on the “email this page” feature in Intervals we needed to find a way to merge HTML & CSS files into a Frankenstein-like document that gmail would honor. Quick back story — gmail doesn’t play nice with conventionally defined CSS. We came up with the Emogrifier, a PHP utility we are adding to the Pelago collection of Sidecar Projects.

Visit www.emogrifier.com to try converting some of your HTML web pages to gmail friendly emails and read more about the project. While you are there, feel free to download the source code for use in your own applications.

10 Responses to “Emogrifier – Convert HTML & CSS into Gmail Friendly Emails”

  1. Joshua says:

    Thanks. You saved my bacon. After reviewing this comparison of CSS Support in email clients:

    http://www.campaignmonitor.com/css/

    I was near despair, but emofrigier did the trick.

  2. Eduardo says:

    Great tool.

  3. Svante says:

    What a great tool!

  4. john says:

    guys,
    Awesome script! Just saved me a ton of time!! THANK YOU THANK YOU THANK YOU!!

  5. Nick says:

    Thank you!

  6. Fredrik says:

    This is an amazing tool, the mere existence of this tool answers so many of those “why is gmail fucking up my html” questions that it’s just unbelievable. (anybody have trouble with tables? hah!)

    Thank you thank you, THANK YOU!

    If there’s ever a need for a reference or a testimonial, email me!

  7. John Reeve says:

    For those who our interested in a C# port of the PHP emogrifier code, Jonne Kats has created a version of the Emogrifier for you. Check it out at:

    https://github.com/Jonne/CssFlattener

  8. mike says:

    Thanks Emogrifier!!! You Rock!! gmail was the only mail client that was giving me problems.

  9. Rostyslav says:

    Thanks for amazing tools!

  10. John Reeve says:

    Emogrifier is on GitHub now. Fork it:
    https://github.com/jjriv/emogrifier

Leave a Reply

Intervals Blog

A collection of useful tips, tales and opinions based on decades of collective experience designing and developing web sites and web-based applications.

What is Intervals?

Intervals is online time, task and project management software built by and for web designers, developers and creatives.