AFAIK, you can't get the bcc recipients. It defeats the purpose of bcc/blind carbon copy and it aligns with RFC 2822 !!
Graph API returns bccRecipients as an empty list always
The API call that I use to get messages- https://graph.microsoft.com/v1.0/me/messages
The bccRecipients field on all the messages we get via graph API with the above call are always an empty list. We want to get access to the bccRecipients or at least just the recipient email address that was used to send the email to this mailbox.
Even the internetMessageHeaders that we get from graph API do not have the BCC header.
But when I open up the same email in web version of Outlook and check the message headers, I can see the bcc recipient. So, the information is really there, it is just that graph API is stripping off the bcc recipients always.
Is there a way to get the bcc recipient email address for the current mailbox from graph API.
Our use case -> Email gets sent to bcc recipient address - test_{UUID}@test .com.
The account address is test@test .com. We have a rule setup on our tenancy that will redirect any emails to test_ to test@test .com. Now, we get these emails but finding out the bcc recipient address is required since we are interested in the UUID to process that email.
Any suggestions to handle this use case will be much appreciated.
1 answer
Sort by: Most helpful
-
Deva-MSFT 2,266 Reputation points Microsoft Employee
2020-10-29T17:57:35.363+00:00