Reputation: 21
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:
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?
Upvotes: 2
Views: 1977
Reputation: 22032
There is nothing explicit in the Graph for doing encrypted emails however the Graph allows you to send native MIME email https://learn.microsoft.com/en-us/graph/outlook-send-mime-message so this allows you to use SMIME for encryption and signitures. You need to handle all the ancillary parts of SMIME yourself (eg distributing certificate etc) OpenSLL can handle most of it https://www.openssl.org/docs/man1.0.2/man1/openssl-smime.html
Upvotes: 2