4 ms·
I will say that it sucks just as a much from the developer front. I had to build some email templates for a project a few weeks ago and I was shocked how wired
by _fat_santa 4y ago
I will say that it sucks just as a much from the developer front. I had to build some email templates for a project a few weeks ago and I was shocked how wired it was compared to regular webdev.
Using a framework is almost a requirement if you don't want to spend all your time on little differences between email clients. The layout is really wired too, with the recommendation to use a ton of nested tables. Not to mention wired bugs like Apple Mail not rendering a background unless you have an image on the page.
The best solution I've found thus far is to use MJML React [1]. This sorta normalizes things and lets you write normal react code that gets transpiled into some abomination that Outlook can read. But it sucks that the only two options that are actually worth a damn seem to be MJML[2] and Foundation[3].
And even with those frameworks it's no silver bullet. I noticed an issue with one provider where they did not respect the `display` css property, making my mobile and desktop layouts both render on the page.
If someone works on these clients I would love to know why there is such difficulty in rendering email?
[1]: https://github.com/wix-incubator/mjml-react https://github.com/wix-incubator/mjml-react
[2]: https://mjml.io/ https://mjml.io/
[3]: https://get.foundation/emails.html https://get.foundation/emails.html