While 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.