WP Mail SMTP + Microsoft 365: migrating off password authentication

The WordPress site was sending mail through Office 365 fine last month. Now the contact-form notifications aren’t arriving, the debug log is carrying 535 5.7.139 Authentication unsuccessful or 550 5.7.30 Basic authentication is not supported for Client Submission, or a support forum thread has warned that the site’s Office 365 connection is about to stop working.

Microsoft is switching off SMTP AUTH Basic Authentication for Exchange Online. On existing tenants it becomes disabled by default at the end of December 2026, and administrators can still enable it; on tenants created after December 2026 it will be unavailable by default. Microsoft documents 550 5.7.30 as the response once Basic Authentication is permanently disabled, and has not announced that date. For logins refused before then, users have posted errors carrying 535 5.7.139 Authentication unsuccessful, with text saying that SMTP AUTH or basic authentication is disabled. Sites that hand mail to Office 365 with a mailbox address and a password sit on the affected path, and this page is for the specific version of that stack where WP Mail SMTP is doing the sending in its Other SMTP mailer mode against smtp.office365.com.

Two paths lead out. Move the WP Mail SMTP mailer from Other SMTP to its Microsoft 365 / Outlook mailer, so M365 stays as the sender over OAuth. Or reconfigure WP Mail SMTP to send through a transactional provider (Postmark, SMTP2GO, Mailgun, SendGrid) and leave M365 out of the outbound path. The pillar hub carries the timeline and the routing for readers on a different plugin or a different M365 setup.

Your two paths

Path What changes What it costs When it’s right
A. Switch to WP Mail SMTP’s Microsoft 365 / Outlook mailer M365 stays as the sender. WP Mail SMTP authenticates over OAuth. Pro licence required: $99 a year on renewal for one site; the first-year price is lower and varies with the vendor’s promotions. Plus an administrator’s consent, where the tenant requires it. The M365 mailbox identity matters, and the tenant lets you consent or an administrator is reachable. On a reseller-provisioned tenant (GoDaddy, IONOS, hosting-bundled M365), check who the administrator is before you buy; if you can’t reach them, take Path B.
B. Switch to a transactional provider Site sends via Postmark, SMTP2GO, Mailgun, or SendGrid. WP Mail SMTP’s free plugin ships native mailers for all four. Domain verification, SPF, DKIM, and (in most cases) sending from a subdomain rather than the M365 mailbox. Free or low-cost at the provider’s tier for typical WordPress volume. No reachable administrator where the tenant requires consent from one, no appetite for the Pro tier, or M365 was in the stack for expedience rather than sender identity.

Path A: the Microsoft 365 / Outlook mailer in WP Mail SMTP

The Microsoft 365 / Outlook mailer is a Pro-only feature in WP Mail SMTP. The free plugin (4.10.5, read 2026-11-25) lists the mailer but disables it for every account type, consumer @outlook.com addresses included. WP Mail SMTP Pro renews at $99 a year for one site; the introductory first-year price varies with the vendor’s promotions (wpmailsmtp.com/pricing/, read 2026-12-02).

  1. Upgrade to WP Mail SMTP Pro. Install the Pro archive over the free plugin from WP Mail SMTP → Settings → General → Upgrade to Pro; existing settings carry over.

  2. Pick a setup method. WP Mail SMTP’s Microsoft 365 / Outlook mailer offers two flows, documented at wpmailsmtp.com/docs/how-to-set-up-the-outlook-mailer-in-wp-mail-smtp:

    • One-Click Setup needs no app registration in the Microsoft Entra admin center. Turn the toggle on, save, click Sign in with Microsoft, and accept WP Mail SMTP’s access request. WP Mail SMTP’s docs name an expired licence as a usual reason a One-Click site stops sending. Post SMTP’s Business plan has its own One-Click Setup; FluentSMTP has no equivalent.
    • Manual setup has the operator create their own Entra app registration, generate an Application (client) ID and a Client Secret, and paste both into the plugin. Only matters when the tenant policy blocks third-party publishers, or when GCC/DoD compliance requires the customer-owned app path.
  3. Consent, or get an administrator to. Whether the mailbox owner can accept the request depends on the tenant’s user-consent setting. On the setting Microsoft manages, the default for new tenants, users can’t grant Mail.ReadWrite, which WP Mail SMTP’s Outlook mailer requests; an administrator has to. WP Mail SMTP’s Outlook mailer documentation does not say whether One-Click Setup requests that scope. Where an administrator has turned user consent off, an administrator has to consent there too. A tenant that lets users consent to any permission that doesn’t require an administrator’s consent needs no administrator. Besides Global Admin, Microsoft lists Application Administrator, Cloud Application Administrator and Privileged Role Administrator as roles that can grant consent.

    When the sign-in stops with AADSTS90094 or AADSTS90093, Microsoft is asking for an administrator. On a reseller-provisioned M365 tenant (GoDaddy, IONOS, hosting-bundled M365 add-ons) that may be the reseller’s support desk. WP Mail SMTP documents a PHP snippet that removes Mail.ReadWrite, added before you connect; attachments then cap at 3 MB. We have not tested whether a user can then consent alone, and the doc does not say whether the snippet covers One-Click. If no administrator is reachable and the sign-in is refused, take Path B.

  4. Save the connection and send a test email. WP Mail SMTP → Tools → Email Test sends to any address; use an inbox on a different domain (a Gmail account works fine; testing to another mailbox in the same tenant can pass even when external delivery is broken). A successful send returns no error.

  5. Clear the debug log and monitor for 24 hours. WP Mail SMTP → Tools → Email Log (Pro-only) records every send attempt. If 535 5.7.139 or 550 5.7.30 appears, check which mailer handled the send and whether another SMTP configuration is still active. On its own, the code does not prove that the Microsoft 365 OAuth connection has regressed.

Path B: a transactional provider

WP Mail SMTP’s free plugin ships native mailers for Postmark, SMTP2GO, Mailgun, and SendGrid (alongside SendLayer, Brevo, Elastic Email, and others). No Pro upgrade for this path.

  1. Pick the provider. Four sit in most nanoPost readers’ consideration set for this migration. Postmark is built for transactional mail, with a free Developer plan for testing, deliverability evaluation, and low-volume side projects at 100 emails/month (Postmark says it never expires; no credit card) and paid tiers from $15/month. SMTP2GO allows 1,000 emails per month free with no stated expiry and fits mixed transactional and light-marketing traffic in the same relay. Mailgun‘s free plan, also with no stated expiry, allows 100 emails per day; it is sensible when other Mailgun infrastructure is already in the stack. SendGrid allows 100 emails per day for the first 60 days and then charges from $19.95/month. The free SMTP servers for WordPress roundup covers the free tiers at more length.

  2. Provision the domain. Sign up, verify the sending domain, publish the SPF and DKIM records the provider issues. The site’s From address usually shifts from the M365 mailbox to a subdomain (send.example.com or similar); sending from the M365 mailbox address itself is possible but breaks M365’s inbound reply routing unless the mailbox forwards those replies onward.

  3. Reconfigure WP Mail SMTP. Settings → General → Mailer → pick the provider. Paste the API key or SMTP credentials from the provider dashboard. Set the From Email to an address on the verified sending domain. Save.

  4. Test and monitor. WP Mail SMTP → Tools → Email Test to an address on a different domain. Watch WP Mail SMTP’s Email Log (Pro-only; the free version shows recent sends in Tools → Debug Events) for 24 hours.

  5. Retire the M365 SMTP AUTH configuration. In the mailbox owner’s account portal → Security → App passwords, revoke the app password the site was using. If tenant policy allows, an Exchange admin can also disable SMTP AUTH on the mailbox with Set-CASMailbox -Identity <[email protected]> -SmtpClientAuthenticationDisabled $true. Both steps are optional but tidy.

If SMTP errors come back after the switch

Check that the selected mailer is still the one you moved to, and whether a second SMTP configuration is still active. One in wp-config.php or a mu-plugin may affect which mailer sends. If the site sends successfully after the change and later logs 535 5.7.139 or 550 5.7.30, confirm which connection handled those messages before treating the error as a cache problem.

Which path when

On a reseller-provisioned M365 tenant, try the Path A sign-in only if you can reach whoever administers the tenant. If Microsoft asks for an administrator and that is the reseller’s support desk, a same-day migration depends on their queue; take Path B.

Take Path A when the M365 mailbox identity matters to recipients: invoices from [email protected], support replies from a mailbox humans also read, order confirmations that need to land in the mailbox’s own Sent items. Path A also needs a tenant that lets you consent, or an administrator who will. WP Mail SMTP Pro renews at $99 a year for one site, less than a year of Postmark’s or SendGrid’s entry paid plan; the friction is the OAuth consent step, not the licence fee.

Take Path B when any Path A prerequisite is a no: no reachable administrator where the tenant asks for one, no budget for the Pro tier, or no reason M365 has to stay as the visible sender. Transactional providers deliver contact-form notifications and order receipts more reliably than a repurposed mailbox does and cost nothing (or very little) at WordPress-transactional volume.

When neither path fits

The site owner who wants M365 as the sender identity, but whose tenant asks for an administrator they cannot reach, has one middle option: a paid transactional provider that supports the M365 mailbox address in the From: header, plus a mailbox-level forwarding rule to route replies. It costs more than either path above and adds a moving part; it is worth naming for the reader who has already ruled out both.

If the site is actually on M365 SMTP relay via connector (port 25, source-IP allowlist) or on Direct Send, the SMTP AUTH retirement does not apply and this migration is the wrong one to run. Microsoft 365 SMTP relay and Direct Send is the right page.

Corrections
  • 2026-11-25: an earlier version said both WP Mail SMTP setup flows always need a tenant Global Admin’s consent. Whether they do depends on the tenant’s user-consent setting, and Application Administrator, Cloud Application Administrator and Privileged Role Administrator can grant it too.
  • 2026-11-25: an earlier version called WP Mail SMTP’s One-Click a Microsoft-published app and said no other mailer plugin matches it. WP Mail SMTP’s One-Click documentation describes signing in and accepting WP Mail SMTP’s access request, but does not identify who owns the app registration; Post SMTP’s Business plan has a One-Click Setup too. The earlier version also said the free plugin’s Microsoft mailer supports consumer accounts (free 4.10.5 disables it), and gave no source for naming caching as the most common cause of a later 535 5.7.139 or 550 5.7.30.
  • 2026-11-25: an earlier version gave 550 5.7.30 as the error for a refused password login today. Microsoft documents it as the response to a password login once Basic Authentication is permanently disabled, a date it has not announced. It also said password login is already unavailable on new tenants; Microsoft says it will be unavailable by default on tenants created after December 2026.
  • 2026-11-09: an earlier version called Mailgun’s free plan permanent. Mailgun’s current Free-plan listing gives 100 emails/day but does not state an expiry.
  • 2026-11-02: an earlier version listed ZeptoMail among WP Mail SMTP’s native mailers; WP Mail SMTP has no ZeptoMail mailer, and reaches ZeptoMail through its Other SMTP option.
  • 2026-12-02: an earlier version said Postmark has the highest reputation for transactional-only mail and SendGrid the broadest name recognition of the four, without a supporting source for either ranking.