Priyanka
Priyanka

Reputation: 21

Category is not showing when email is sent using graph api - Microsoft

I want to send email adding category in the email like Confidential,Restricted etc. I have first used the draft message api to draft the email and it is working fine ,I can see cateory in draft but when trying to send that draft message , email is getting sent without category.Below are the apis I am using

To draft the message - POST /users/{id | userPrincipalName}/mailFolders/{id}/messages To send draft message - POST /users/{id | userPrincipalName}/messages/{id}/send

Please help if there is any other way to add the category and send email using graph api.

P.S. - I have also added required api permission (Mail.ReadWrite and Mail.Send)

I am expecting to send emails with category using graph api

Upvotes: 0

Views: 243

Answers (1)

Dmitry Streblechenko
Dmitry Streblechenko

Reputation: 66286

Message categories are stored in a MAPI property. When message is sent, it is converted to MIME and the property is left behind. Even if the message is sent between two mailboxes on the same Exchange server without being converted to MIME, categories are never copied - they are never transmitted.

Upvotes: 0

Related Questions