We are about to integrate an external message handling system with an Office 365 mailbox. When sending emails clients sometimes like to use the encrypt function provided by Outlook and expect the replies to be similarly encrypted. That is why we need to be able to programmatically read and send also encrypted emails (preferably using PHP).
We have noticed that Microsoft provides the Graph REST API for accessing mailboxes:
- https://learn.microsoft.com/en-us/outlook/rest/get-started
- https://learn.microsoft.com/en-us/graph/api/resources/mail-api-overview?view=graph-rest-1.0
That API seems to allow reading and sending messages, but there is no mention about encrypted emails. Does anyone know if those are supported by this API? Or is there something else that would be better suited for the job?