by magpi3 · 1y ago · 0 comments
The problem is when the email explicitly includes a plain text part which is an empty string (or a generic one-sentence placeholder), and a separate html part. In these cases, the email client is right in defaulting to the plain text version.
Also many of those emails are autogenerated. So the template has to be done once, and that's it. And it should be trivial for whoever composes the HTML email to copy-paste the important part into a text-only version. Maybe it would actually help them think about what the important part actually is.
> So the template has to be done once, and that's it.
Except the world is not static and then when the HTML template gets updated they'll forget the text template and now you are missing vital information. Perhaps even legally required information like unsubscribe links.
Supporting text email only makes sense if that will actually be tested. Otherwise you are better of just rendering the HTML to text locally. That's going to lose you less information than a forgotten text mail template.
And again, HTML brings security concerns.