Overview
WPO365 describes itself as: “Send WordPress emails from a M365 / Exchange Online Mailbox using Microsoft Graph, leveraging OAuth for authentication which is more secure than SMTP”
It is active on 10,000+ WordPress sites and rated 5.0 out of 5 by 41 users on WordPress.org. Developers can extend it through 16 actions and 14 filters, listed below.
How to install WPO365
- Open the plugin installer. In your WordPress dashboard go to Plugins → Add New Plugin.
- Search for it. Type “WPO365” and pick the one by Marco van Wieren.
- Install and activate. Click Install Now, then Activate.
Install with a zip file or WP-CLI
Download the zip from the WordPress.org plugin page, then go to Plugins → Add New Plugin → Upload Plugin, choose the file and click Install Now. Or from the command line:
wp plugin install wpo365-msgraphmailer --activateRequirements: WordPress 5.0+ · PHP 7.4+ · tested up to WordPress 7.1.4
Hooks & customisation
WPO365 6.5 fires 16 actions and 14 filters. Use them from your child theme or a snippets plugin to change how it behaves without editing its files.
// Authenticate but don't sign in Entra ID users.
apply_filters( 'wpo365/cookie/set', $wpo_usr, $state );
// Filter in Core/Shortcode_Helpers.php
apply_filters( 'wpo365/aad/redirect_uri', $_site_url );
// Filter in Mail/Mail_Authorization_Helpers.php
apply_filters( 'wpo365/aad/params', $params, $application_id, $authorize_url );
// Action in Insights/Event_Service.php
do_action( 'wpo365/insights/notify', $error, $category );
// Action in Services/Authentication_Service.php
do_action( 'destroy_wpo365_session' );
// Action in Services/Authentication_Service.php
do_action( 'wp_login', $wp_usr->user_login, $wp_usr );Need WPO365 customised?
Tell us what you want changed, added or fixed and we'll reply with an estimate.
WP EXPERTS is independent and not affiliated with Marco van Wieren. Plugin names and logos belong to their owners. Version, rating and install figures from WordPress.org, checked Nov 17, 2026.