by Marco van Wieren on WordPress.org
Send WordPress emails from a M365 / Exchange Online Mailbox using Microsoft Graph, leveraging OAuth for authentication which is more secure than SMTP

Configuration page
WPO365 | MS GRAPH MAILER provides you with a modern, reliable and efficient way to send WordPress transactional emails from one of your Microsoft 365 / Exchange Online / Mail enabled accounts.
The plugin re-configures your WordPress website to send emails using the Microsoft Graph API instead of – for example – SMTP. Sending WordPress emails using the Microsoft Graph API has become the only available alternative after Microsoft has disabled basic authentication (username and password) over the SMTP protocol.
ADD FUNCTIONALITY WITH PREMIUM EXTENSIONS
The following features can be unlocked with the WPO365 | MAIL extension.
We will go to great length trying to support you if the plugin doesn’t work as expected. Go to our Support Page to get in touch with us. We haven’t been able to test our plugin in all endless possible WordPress configurations and versions so we are keen to hear from you and happy to learn!
We are keen to hear from you so share your feedback with us on LinkedIn and help us get better!
When you’re a developer and interested in the code you should have a look at our repo over at WordPress.