Because some email clients don't properly render external stylesheets (or even styles within the <head>
of an HTML email message), inlining CSS is a common approach to try to maintain consistent look and feel between a website and emails. But manually inlining styles is painful and error prone.
I'm looking for a way to let users create messages using the same stylesheet as their website uses, but then converting the text into a more email appropriate format prior to sending. While it's certainly possible to write a tool that reads styles and the DOM, injecting the correct inline style for each element, I'm hoping there's already a tool available that does this. Unfortunately, my googling hasn't yielded any useful results.
Do you know of any tools that can inline CSS styles? I'm not picky about the language, though if it's not open source, I'll probably just write my own.