Have you ever written HTML emails? It’s a mess, a disaster, with Outlook using an engine worse than IE5 and everyone else hacking emails to pieces and only supporting certain subsets of HTML and CSS.
This sort of thing makes navigating that absurd maze tolerable, so that you can write something comparatively straightforward and have it transform it into the eldritch horror that is HTML email.
This particular thing includes a few of the more mystical incantations to get the MSO renderer (Outlook and ) to do the right thing. I’m fairly impressed with it for that reason. It stays away from using VML for the best results, which… well, it’s probably safest.
Of course, the result is still far from perfect, because HTML for emails is that bad.
I suspect Lovecraft had premonitions about HTML emails.
The worst is not Outlook, you can get it to do what you want most of the time... the worst are the myriad of webmail clients. They do not use iframes (which would be the best way, given you can limit what an iframe can load - scripts, images, other external resources - pretty good), but they filter and rewrite the markup each in a different way so they can inject it more or less safely in the primary markup...
And next upon the list are the Android mail clients, they're a mess, too... and there is no practical way to do automated tests or even comparisons, you gotta test 'em all by hand.
I assure you, I’ve had a lot more trouble on the MSO renderer than others. Sure, webmail clients are commonly fairly dodgy, and Android clients are pretty terrible, but the MSO renderer is the biggest one that seems to actively go out of its way to break your stuff. It’s the one that simply blows up in weird and wonderful ways rather than merely failing to use a declaration.
At FastMail, we’re looking forward to using JMAP in production, because then the defanging of HTML emails will be done on the client side rather than in a rather ancient hunk of Perl that works tolerably well but we’ve mostly avoided touching because JMAP is coming (still, it’s already fairly good as webmail clients go).
This sort of thing makes navigating that absurd maze tolerable, so that you can write something comparatively straightforward and have it transform it into the eldritch horror that is HTML email.
This particular thing includes a few of the more mystical incantations to get the MSO renderer (Outlook and ) to do the right thing. I’m fairly impressed with it for that reason. It stays away from using VML for the best results, which… well, it’s probably safest.
Of course, the result is still far from perfect, because HTML for emails is that bad.
I suspect Lovecraft had premonitions about HTML emails.