SendMail symbols in subject line

Barone, Lou 56 Reputation points
2022-08-23T13:43:13.83+00:00

234027-image.png

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!"

Microsoft Graph
Microsoft Graph
A Microsoft programmability model that exposes REST APIs and client libraries to access data on Microsoft 365 services.
10,707 questions
{count} votes

2 answers

Sort by: Most helpful
  1. Barone, Lou 56 Reputation points
    2022-08-23T15:37:22.513+00:00

    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
    234162-image.png

    1 person found this answer helpful.
    0 comments No comments

  2. Barone, Lou 56 Reputation points
    2022-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.

    https://www.telemessage.com/developer/faq/how-do-i-encode-non-ascii-characters-in-an-email-subject-line/

    0 comments No comments