For anyone else searching for an answer to this. The below is how you accomplish. Use Q for quotes printable taken from https://datatracker.ietf.org/doc/html/rfc1342
SendMail symbols in subject line

Barone, Lou
36
Reputation points
When sending emails via SMTP you are able to inject images into the subject line, doing something similar to the below. I am trying to understand if there is a way to emulate this when sending a rest call to graph for sendMail.
$subject = "=?utf-8?Q? =F0=9F=8C=9F CONGRATULATIONS!"
{count} votes
2 answers
Sort by: Most helpful
-
Barone, Lou 36 Reputation points
2022-08-23T15:37:22.513+00:00 Barone, Lou 36 Reputation points2022-08-23T15:12:24.137+00:00 This article goes over it from a spec standpoint. Just trying to see how to emulate this over the json\rest\graph post.
This is an example of how I do this today. We send these emails through an internal relay (smtp server) as html formatted. However the subject line has still required a utf8 encoding so the symbols will render properly in outlook client.
Just trying to understand how to emulate this over Graph where you are sending via json as seen below.