Does Netlify Email Integration support sending HTML messages with a text-only version in the same email?
The email service providers that Netlify Email Integration wraps (MailGun, PostMark, and SendGrid) all support a way of sending a HTML plus plain text email message bodies.
And SendGrid documentation even warns:
“Ensure your email contains both plain text and HTML versions, so recipients can view your message using the mail client of their choice. If you only send HTML emails, and a recipient’s server or mail client blocks HTML content, they will not see anything in your emails.”
I don’t see any option to add a plain text version in the Netlify Email Integration API, only a HTML template. Did I miss it or is that not possible?
No, specifying plain-text is not supported. Looks like SendGrid automatically includes a fallback: Auto Generate Plain Text Content from HTML · Issue #453 · sendgrid/sendgrid-nodejs. Maybe the other providers do something similar as well.
For future searchers reading this thread: The SendGrid HTML-to-text helper referred to is only accessible when using the SendGrid API client directly — not when using the Netlify Email Integration wrapper API.
A key requirement of my question was that I want to use the Netlify Email Integration API. But as @hrishikesh said, my answer is no, that is not possible.
We use the API client under-the-hood, which is why I pointed to that. 
1 Like
Yes, in fact this is the exact line from the Netlify Email plugin where the SendGrid API is invoked. And you can see that it only has an html option, not the text and html option available from SendGrid.
Can I make a feature request?
1 Like
That line is outdated and not the current version of the plugin (as you can clearly see that repo is archived).
I’ve submitted a PR to add support for plain text and asked the devs to review it. Though, I don’t know if/when will this be released.
1 Like
plainText option should now be available.
1 Like