How can I send a message using Microsoft Graph that would have both, text AND html bodies?
Microsoft Graph - Send email with text and html bodies
3.6k views Asked by Ωmega At
1
How can I send a message using Microsoft Graph that would have both, text AND html bodies?
For those finding this message sometime later, pulling your hair out trying to understand why Microsoft didn't make this clear in the documentation, see this post: Can Office 365 REST API send an email with both plain text and HTML body?
I've confirmed this on my end - once the graph API request is made, the Exchange server does, in fact, strip the HTML characters, creates a multipart message (with boundaries) and delivers in the appropriate format.
In my case, I only needed to set the following:
Here's an example of what the raw response (email source) looks like in gmail: