Skip to content
Sign in
WPO365 | MICROSOFT 365 GRAPH MAILER icon

WPO365 | MICROSOFT 365 GRAPH MAILER

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

Not scanned yet WordPress plugin 10k installs

Install in

No install steps yet

Follow the steps on the source 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.

DELIVERY

  • Send WordPress transactional emails from one of your Microsoft 365 Exchange Online / Mail enabled accounts using Microsoft Graph instead of – for example – SMTP.
  • Choose between delegated (send mail as a user) and application-level (send mail as any user) type permissions.
  • Or: Select either a Microsoft 365 account or a personal Microsoft account, like Hotmail.com or Outlook.com, to send WordPress emails.
  • Or: Configure RBAC for Exchange Online and authorize as an application but with a limited scope e.g. one specific mailbox.
  • Daily refresh of Microsoft Graph access and refresh token.
  • Auto-flagging and suppression of duplicate emails.
  • Auto-retry when throttled (HTTP 429).

SEND AS HTML

  • Send emails formatted as HTML.

SAVE TO SENT ITEMS

  • Emails sent will be saved in the account’s mailbox in the Sent Items folder, further helping to track (successful) mail delivery.

ATTACHMENTS

  • Send files from your WordPress website as attachments.

WPO365 INSIGHTS

  • See what matters, when it happens Track key WPO365 events like sent emails with WPO365 Insights more

CONFIGURATION / TEST EMAIL DELIVERY

  • Easy configuration with detailed step-by-step Getting started guide and video.
  • Send test email to recipients incl. CC, BCC and attachment.

ADD FUNCTIONALITY WITH PREMIUM EXTENSIONS

The following features can be unlocked with the WPO365 | MAIL extension.

WPO365 INSIGHTS

  • Get WPO35 Alerts in your inbox when email delivery is failing more

Auto-Retry

  • Log every email sent from your WordPress website, review errors and (automatically) try to send unsuccessfully sent mails again.

LARGE ATTACHMENTS

  • Add support to send WordPress emails with attachments larger than 3 MB using Microsoft Graph.

SEND FROM ALIAS

  • Send emails from an alias address (but submit to Microsoft Graph as the authorized user).

SEND AS / SEND ON BEHALF OF

  • Send email as / on behalf of another user or distribution list.

SHARED MAILBOX

  • Send email from Microsoft 365 Shared Mailbox.

STAGING MODE

  • Mail Staging Mode is useful for debugging and staging environments. WordPress emails will be logged and saved in the database instead of being sent.

DYNAMIC SEND-FROM

  • Allow forms to override “From” address e.g allow Contact Form 7 to dynamically configure the account used to send the email from (requires application-level Mail.Send permissions).

MAIL THROTTLE

  • Throttle the number of emails sent from your website per minute.

WP-CONFIG FOR AAD SECRETS

  • Further improve overall security by choosing to store Azure Active Directory secrets in your WordPress WP-Config.php (on disk) and have those secrets removed from the database.

SEND AS BCC

  • Send emails as BCC instead and prevent reply-to-all mail pollution.

REPLY-TO

  • Configure a default reply-to mail address if this should differ from the account’s mail address that is used to send WordPress transactional emails from.

Prerequisites

  • We have tested our plugin with WordPress >= 5.0 and PHP >= 5.6.40.
  • You need to be an Entra ID Tenant Administrator to configure both Azure Active Directory and the plugin.

Support

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!

Feedback

We are keen to hear from you so share your feedback with us on LinkedIn and help us get better!

Open Source

When you’re a developer and interested in the code you should have a look at our repo over at WordPress.

Written by Joobi from the project's own listing. See the source page

emailMicrosoftphpmailersmtpwp_mail
23 Nov 2026
Version 6.6 released. Not scanned yet.

6.6

  • Security: Updated phpseclib to version 3.0.59 (was 3.0.58), which patches GHSA-q4pw-cp3q-jxmp. WPO365 doesn’t use the affected code.

6.5

  • Fix: The Mail Audit Log now also records an error when WordPress itself fails to send an email, e.g. because of an invalid From address. It now also reliably records a separate entry for each email when more than one email is sent in the same request. Requires the WPO365 | MAIL premium paid plugin.
  • Fix: Resending an email from the Mail Log Viewer, and automatically retrying a failed email, now works when the email was sent to a comma-separated list of recipients (e.g. by a Gravity Forms notification). Before, every retry failed with “no valid recipient has been specified”. Requires the WPO365 | MAIL premium paid plugin.

6.4

  • Security: Hardened the nonce check of the mail authorization.
  • Security: Updated phpseclib to version 3.0.58 (was 3.0.52).
  • Fix: On websites with a persistent object cache (e.g. Redis or Memcached), the WPO365 configuration no longer shows premium features as locked when the cache held an outdated list of active premium plugins. Opening the configuration, the “Verify license and check for plugin updates” button on the Licenses page and (de)activating a premium plugin now repair the list.

6.3

  • Fix: When a WordPress session expires, WordPress’ own login prompt appears again, instead of the website’s home page opening in that prompt.
  • Security: Hardened how WPO365 processes the response of a mail authorization.
  • Security: Fixed a cross-site scripting (XSS) vulnerability.
  • Improvement: When a mail authorization fails because a nonce could not be verified, WPO365 now writes to its log why (e.g. the authorization link had been used before, or was not created by this website).
  • Fix: On WordPress multisite networks, activating, deactivating or updating a WPO365 premium plugin network-wide now refreshes every site’s list of active premium plugins, so that the premium options appear in each site’s configuration.
  • Fix: For a “Government GCC (High)” tenant, WPO365 now reads the expiration date of the application secret from graph.microsoft.us instead of graph.microsoft.com, where the request failed with “SecurityTokenInvalidCloudInstanceException”.

6.2

  • Security: Fixed a cross-site scripting (XSS) vulnerability.
  • Security: Hardened the “Licenses” page. License requests to wpo365.com now also verify the server’s SSL certificate, unless “Skip SSL host verification” is checked on the plugin’s “Miscellaneous” configuration page.
  • Security: The ID token received while authorizing the mail account is now always checked for the right issuer and audience.
  • Fix: License keys are now saved in the database only. Any license key in your wp-config.php overrides (WPO_OVERRIDES) will be automatically copied to the database once and then ignored.

6.1

  • Fix: Microsoft’s infrastructure is currently incompatible with OpenSSL 3.5 and higher’s new default settings (as shipped with e.g. Debian 13), which could make sending emails via Microsoft Graph unexpectedly fail with a “Not Found” error on affected web hosts (e.g. IONOS / Fasthosts) – the plugin now automatically detects this and works around it.

6.0

  • Support for WordPress 7.1.
  • The plugin will now – on a daily base – automatically refresh the Microsoft Graph mail connection’s access and refresh token, so outgoing mail no longer risks failing due to a long-expired token after periods of low activity. Consult the update tutorial
  • Added automatic detection and suppression of duplicate outgoing emails sent within a short time window. Read more
  • The plugin’s built-in “Send WordPress emails using Microsoft Graph” feature nows honor a “Retry-After” header – when Microsoft Graph throttles a request – with a short automatic retry, instead of failing immediately. Read more
  • The existing “obfuscate Entra ID options” switch – that will delete sensitive Entra ID settings from the database once they’re defined in ‘wp-config.php’ when toggled on – is now capable of automatically restoring those settings if switched off again. Read more

5.10

  • Fix: Fixed an issue where a double forward slash inside a query string value (e.g. “https://” within a redirect_to parameter) could be incorrectly collapsed to a single slash while the plugin sanitized the current request URL, which could prevent users from authorizing successfully. [LOGIN, MAILER]

5.9

  • Security Fix: Strengthened verification of certain AJAX requests to help prevent unauthorized changes to plugin settings.

5.8

  • Fix: Refactored and updated core elements to improve overall security, maintainability and resilience. No functional changes.

5.7

  • Fix: Fixed broken and outdated links in the plugin wizard.

5.6

  • Fix: Updated phpseclib to version 3.0.52 (was 3.0.43), which patches CVE-2026-44167.

5.5

  • Improvement: Redirection to Microsoft for SSO / Authorization now consistently routes through the plugin’s custom endpoint /wpo/sso/start. This allows administrators to exclude a single endpoint from caching, ensuring reliable nonce verification and preventing cache-related errors such as “Your login has been tampered with”. Read this article to get a better understanding.

5.4

  • Improvement: You can now send emails from alias addresses when using Microsoft Graph, enabling more tailored and professional communication. Please note that this is a premium function. Consult the online documentation for details.
  • Support for WordPress 7.0.

5.3

  • Fix: The Mail Log Viewer now reliably displays attachment names without crashing.
  • Fix: Corrected an issue that could cause a crash while generating client secret expiration warning emails.
  • Fix: Resolved a “Failed to execute ‘querySelector’ on ‘Document'” error in the wizard app triggered by invalid auto-generated element IDs.

5.2

  • Fix: Automatically disables SSO when the mail function is invoked in the context of the WPO365 | MICROSOFT GRAPH MAILER plugin (preventing the plugin from logging unconfigured-warnings). [MAILER].

5.1

  • Fix: Prevented duplicate or incorrect type attributes on script tags, which could cause “Cannot use import statement outside a module” errors. [MAILER]

5.0

  • Change: Redesigned the menu of the plugin’s Configuration Pages – new with a new vertical navigation, Redesigned the plugin menu with a new vertical navigation, improving clarity and access to features. [ALL]
  • Improvement: To align with Microsoft’s current branding, Azure AD has been renamed to Microsoft Entra ID throughout the plugin, and all portal links now open in entra.microsoft.com. [ALL]
  • Fix: Fixed an issue in the stand‑alone WPO365 | MICROSOFT GRAPH MAILER plugin and tested and confirmed compatibility with GCC High tenants. [MAILER]

4.2

  • Security Fix: A Server Side Request Forgery (SSRF) vulnerability has been patched. [ALL]
  • Improvement: Confirms support for WordPress 6.9. [ALL]

4.1

  • Improvement: When emails are successfully sent during a retry, the corresponding error message is removed, and the error count on the WPO365 | INSIGHTS Dashboard is updated accordingly.
  • Improvement: Sending WordPress emails via Microsoft Graph is now supported for GCC High tenants.

4.0

  • Feature: See what matters, when it happens Track key WPO365 events like sent emails with WPO365 Insights and get alerted when when a critical WPO365 event occurs. Consult the updated documentation for instructions how to configure WPO365 Alerts. [ALL PREMIUM]
  • Improvement: A new Daily WPO365 Insights widget has been added to the WP Admin Dashboard, informing administrator about key WPO365 events like logins, sent emails and user creation and updates. Refer to the update documentation for further details or how to hide the widget. [ALL]
  • Fix: The plugin checks whether the request parameter with the key idp_id was added by WPO365, and ignores it if not. [ALL PREMIUM]
  • Fix: Addressed various technical problems to enhance plugin reliability. [ALL]

v3.7

  • Fix: WPO365 will avoid using “wp_print_inline_script_tag” and instead create a

v3.6

  • Improvement: The built-in WordPress Mailer for Microsoft Graph now supports RBAC for Exchange Online. As a result, administrators should now explicitely configure the desired authorization scenario, as explained in a new lesson in the tutorial.
  • Improvement: All scripts now are created using either wp_print_script_tag or wp_print_inline_script_tag. As a result, developers can add your own nonce attribute using the wp_script_attributes and wp_inline_script_attributes filters e.g. to enable a Content-Security-Policy (or CSP).
  • Fix: For premium plugins, WPO365 would check the license status with every admin request, which could slow down your site unnecessarily. [MAIL]

v3.5

  • Improvement: Confirms support for WordPress 6.8.
  • Improvement: Configuring a “GCC (High)” tenant using wp-config.php is now supported for both single and multiple IdP scenarios. [ESSENTIALS, PROFESSIONAL, INTEGRATE, CUSTOMERS (LOGIN+, SYNC, INTRANET)]
  • Fix: Minor code quality improvements.

v3.4

  • Fix: The TLD “lan” has been added to the license-checker list of exceptions.
  • Fix: An issue causing – under specific circumstances – an “array-to-string conversion” warning in the Url_Helpers class has been resolved.

v3.3

  • Improvement: All source-code is now constantly reviewed for violations of coding standards (using phpcs) and if possible corrected to adhere to the WordPress Coding Standards.
  • Fix: Functionality to save the state before the user is sent to Microsoft to authenticate and to read that state when the user returns has been refactored, to ensure redirection back to the “intended” location before WPO365 sent the user to Microsoft is working as expected.
  • Fix: WPO365 will no longer show a “doing_it_wrong” warning when installed for the very first time.
  • Fix: During the previous release, premium plugins were not zipped correctly, causing issues with folder-naming when installing. [ALL PREMIUM]

v3.2

  • Fix: (Composer) Dependencies have been updated to remove the requirement for PHP >= 8.0.0.

v3.1

  • Improvement: You can now choose between a Microsoft 365 account or a personal Microsoft account, like Hotmail.com or Outlook.com, to send WordPress emails. See the updated tutorial for details.
  • Fix: Plugin no longer (falsely) reports an error when enabling the auto-retry mail-send functionality fails. Instead, it generates a warning with a more verbose description. [MAIL]
  • Fix: The plugin now properly URL encodes a user’s UPN when trying to submit email messages to Microsoft Graph. [LOGIN, MICROSOFT GRAPH MAILER

v3.0

  • Change: The PHPSECLIB v3 library has been updated to the latest version 3.0.43 and any customizations have been abandonned.
  • Fix: Sending a test email from the “Mail” configuration page will no longer delete all cached (user) access tokens.

v2.39

  • Improvement: Developers can now filter the parameters used to build the authorization URL / token URL.

v2.38

  • Fix: Non-specific technical improvements.

v2.37

  • Fix: Non-specific technical improvements.

v2.36

  • Fix: Non-specific technical improvements.

v2.35

  • Fix: Non-specific technical improvements.

v2.34

  • Improvement: The HelpScout beacon on the plugin’s configuration pages would be blocked from loading – for example when using Microsoft Edge – and has therefore been replaced with a new help button that opens the WPO365 Contact Form instead.
  • Fix: The default value for the redirect URL now again corresponds to the site’s home URL.
  • Fix: Some WP Cron Jobs that rely on a custom cron schedule “wpo-every-minute” e.g. Auto-Retry for sending emails and User Sync Monitor to ensure user synchronization keeps running, should no longer be removed when the custom schedule is not found. [PREMIUM]
  • Fix: Mail Log Viewer will show no results if a filter e.g. Errors returns no results. [PREMIUM]

v2.33

v2.32

  • Improvement: The Mail Audit Log Viewer has been updated to show nr. of attempts and time of last attempt for a better general understanding of the send-status of the email in question. [PREMIUM]
  • Improvement: The Debug Log entries now display timestamps in the WordPress timezone (see WP Admin > Settings > General > Timezone).
  • Improvement: The Mail Audit Log entries now display timestamps in the WordPress timezone (see WP Admin > Settings > General > Timezone). [PREMIUM]
  • Improvement: The WPO365 Insights entries now display timestamps in the WordPress timezone (see WP Admin > Settings > General > Timezone).
  • Improvement: A small icon on the plugin’s Mail configuration page will show the status of the “Resending failed emails automatically” feature. [PREMIUM]
  • Improvement: The Microsoft Graph Mailer for WordPress will not be instantiated if no authorization information can be found.
  • Improvement: The Mail Authorization Status Popup will now appear only after 4 seconds and will no longer show if authorization is under way.
  • Fix: WordPress no longer shows that an update for a premium addon or bundle is available when the latest version is already installed. [PREMIUM]
  • Fix: The recently added Mail Audit Log Retention Policy (to clean up entries older than 90 days) no longer fails if an older version of WPO365 | MICROSOFT GRAPH MAILER or WPO365 | LOGIN would be installed in combination with the latest version of the WPO365 | MAIL addon. [PREMIUM]
  • Fix: The WPO365 configuration pages will now show the correct values for Entra ID / AAD related options retrieved from wp-config.php (instead of from the database). [PREMIUM]
  • Fix: The Mail Audit Log will now create a new table at the correct “level” in case WordPress Multisite would be activated and WPO365’s default support mode for WPMU (= Shared) is configured. [PREMIUM]
  • Fix: The Redirect URI for the WPO365 Microsoft Graph Mailer no longer indicates an error for the Redirect URI migrated from “Mail Integration for Office 365 / Outlook” plugin.

v2.31

  • Breaking Change (Microsoft Graph Mailer): WPO365 retains mail log entries that are less than approximately 90 days old and deletes entries that exceed the configured number of days. [PREMIUM]
  • Improvement: In an attempt to better understand errors that involve cURL, administrators can now enable verbose logging for cURL. [ALL]
  • Fix: The premium WPO365 | MAIL option to resend failed emails automatically can now be started when the premium addon is used in combination with WPO365 | MICROSOFT GRAPH MAILER. [MICROSOFT GRAPH MAILER]

v2.30

  • Fix: By fixing a caching issue, WPO365 should – after this update – no longer show a notification that “There is a new version of […] available […]” for WPO365 premium addons and bundles, after those were updated to the lastest version. [ALL PREMIUM ADDONS / BUNDLES]

v2.29

  • Fix: “Strict Mode” for the Redirect URI can now also be enabled for the WPO365 | MICROSOFT GRAPH MAILER plugin (so it will only try process an Oauth response / payload detected at the exact URL which must be a path below the site’s home address e.g. /oidc-auth/).
  • Fix: The plugin will not try and process an Oauth response / payload if both features SSO and MICROSOFT GRAPH MAILER are disabled or if SSO is disabled but MICROSOFT GRAPH MAILER is enabled and but the administrator did not start an attempt to authorize an account to send emails from.
  • Fix: WPO365 Health Messages are now correctly displayed on the corresponding panel for the MICROSOFT GRAPH MAILER plugin.

v2.28

  • Breaking Change: To support devOps workflows and site replication scenarios, WPO365 now automatically detects named constants in your website’s wp-config.php file that either configure an single Identity Provider (IdP) or any of the
4 Feb 2022Listed on Joobi from WordPress.org.

Follow this listing's changes (Atom feed)