FluentSMTP + Microsoft 365 OAuth: migrating off password authentication

If your WordPress site sends its transactional email through Microsoft 365, and FluentSMTP is the plugin doing the sending with a mailbox and its password, that setup has a shelf life. Contact-form notifications, password resets, order receipts all go out that way. Microsoft is turning off the password sign-in that plugins use to hand mail to Exchange Online. On existing tenants the default flips off 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 this response for a password login once Basic Authentication is permanently disabled, and has not announced that date:

550 5.7.30 Basic authentication is not supported for Client Submission

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.

Two paths lead out. Switch FluentSMTP’s connection to the Microsoft 365 / Outlook OAuth type, so M365 stays as the sender. Or add a transactional provider as a new FluentSMTP connection, so mail leaves M365 entirely. 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 FluentSMTP to Microsoft 365 OAuth M365 stays as the sender. FluentSMTP submits over Graph instead of SMTP AUTH. An app registration you own in the tenant’s Microsoft Entra portal, plus an administrator’s consent where the tenant requires it. Free at the plugin level; FluentSMTP’s Outlook connection ships in the free plugin. The M365 mailbox identity matters to recipients, and you can register an app in the tenant.
B. Add a transactional-provider connection Site sends via Postmark, SMTP2GO, Mailgun, or SendGrid. FluentSMTP has a native mailer for each. Domain verification, SPF, DKIM, and (in most cases) sending from a subdomain rather than the M365 mailbox. No Entra access, no administrator to consent where the tenant requires one, or M365 was in the stack for expedience rather than sender identity.

A third option (“do nothing”) holds only while an administrator keeps Basic Authentication enabled on the tenant, and Microsoft plans to remove it for good. Once Basic Authentication is off on the tenant, this password-based Microsoft 365 SMTP connection stops sending contact-form notifications, password resets, and order receipts; those messages need another working route.

One difference between FluentSMTP and WP Mail SMTP Pro is worth naming before Path A begins. WPMS Pro’s One-Click Setup needs no app registration from the site operator, who signs in with Microsoft and accepts WP Mail SMTP’s access request. FluentSMTP has no equivalent. Every FluentSMTP installation that reaches the Microsoft 365 / Outlook connection needs its own Entra app registration in the customer’s tenant. That difference does not matter to a reader who can register an app in the tenant. It is disqualifying for a reader on a reseller-provisioned M365 tenant (GoDaddy, IONOS, a hosting-bundled add-on) who cannot reach the Entra admin center at all. Those readers go to Path B.

Path A: switch FluentSMTP to Microsoft 365 OAuth

Register an application in Microsoft Entra

  1. Sign in to the Microsoft Entra admin center with an account that can register apps in the tenant. Microsoft lets users do that by default; where an administrator has turned that off, the Application Developer role restores the ability. If the URL returns “You don’t have permission” or the tenant selector shows only the reseller’s tenant, stop here and jump to Path B. A customer-owned app registration cannot be created without directory access, and FluentSMTP has no plugin-published fallback to reach.

  2. Go to Entra ID → App registrations → New registration. Give the app a name; FluentSMTP or WordPress mailer for <site> is fine, the name is internal to the tenant. For “Supported account types”, pick the single-tenant option unless there is a specific multi-tenant reason not to. Set the Redirect URI type to Web and paste the App Callback URL from FluentSMTP’s Outlook or Office 365 connection form. On a site with pretty permalinks it is https://<site>/wp-json/fluent-smtp/outlook_callback; with plain permalinks it is https://<site>/index.php?rest_route=/fluent-smtp/outlook_callback. Copy it from the form rather than typing it. Click Register.

  3. Note the Application (client) ID and Directory (tenant) ID from the app’s Overview page. FluentSMTP needs the client ID, and for a single-tenant app the tenant ID too.

    [Screenshot: App registration Overview page showing Application (client) ID and Directory (tenant) ID fields]

  4. Add a client secret. Certificates & secrets → Client secrets → New client secret. Description FluentSMTP, expiry 24 months (the maximum; a shorter expiry means an earlier calendar reminder to rotate). Copy the Value column immediately.

    [Screenshot: Client secret Value field immediately after creation, before navigating away]

    Entra shows the secret in cleartext only on creation, and the Value column is what the plugin needs. The Secret ID next to it is a different string and will not authenticate. Paste the Value into a password manager entry named for the site before doing anything else.

  5. Add API permissions. API permissions → Add a permission → Microsoft Graph → Delegated permissions. Add these three: Mail.Send, Mail.Send.Shared, offline_access. They are the scopes FluentSMTP 2.4.5’s Outlook mailer requests, according to its source (read 2026-11-25; versions before 2.4.0 also asked for Mail.ReadWrite and User.Read). If you hold a role that can grant admin consent, click Grant admin consent for &lt;tenant&gt;.

    [Screenshot: API permissions list with the Grant admin consent button visible]

    Application Administrator, Cloud Application Administrator and Privileged Role Administrator can all grant admin consent. Not every tenant needs it: none of the three scopes is on the list of permissions Microsoft’s managed consent setting bars users from granting, so on that setting, the default for new tenants, the mailbox owner can accept them at sign-in. An administrator has to grant them where user consent is turned off or limited further, or where the app requires user assignment. Without that grant, Microsoft stops the sign-in with AADSTS90094 or AADSTS90093.

Connect FluentSMTP to the app

  1. In WordPress, go to Settings → FluentSMTP, click Add Connection, and pick Outlook or Office 365.

  2. Paste the client ID into Application Client ID and the secret’s Value into Application Client Secret. The Directory (tenant) ID field is optional; left empty, it means Microsoft’s multi-tenant common sign-in. For the single-tenant app registered above, paste the tenant ID: Microsoft refuses common for single-tenant apps with AADSTS50194. Set the From Email to the M365 mailbox address that will authorise the connection.

    [Screenshot: FluentSMTP Outlook or Office 365 connection form filled out with the three ID/secret fields]

  3. Click Authenticate with Office365. Sign in as the mailbox owner, not the tenant admin: the mailbox owner grants delegated access to their own mailbox. Approve. The page that opens shows Your Access Code; copy the code into FluentSMTP’s Access Token field.

  4. Click Save Connection Settings. If an “Other SMTP” connection to M365 is still configured, delete it now, or leave it as a routed fallback for a week before deleting.

Test and monitor

Use FluentSMTP’s Email Test to send to an address on a different domain (a Gmail address works fine; testing to another mailbox in the same tenant loopbacks the delivery path and can pass even when external delivery is broken). A successful send returns no error.

Watch FluentSMTP → Email Logs for 24 hours after the switch. If 535 5.7.139 or 550 5.7.30 appears, check which connection handled the send and whether the old SMTP connection is still active. On its own, the code does not prove that the Microsoft 365 OAuth connection has regressed.

Path B: add a transactional provider connection

FluentSMTP ships native mailers for Postmark, SMTP2GO, Mailgun, and SendGrid in the free plugin, alongside Brevo, Elastic Email, SparkPost, and others. The four named here are the shared set the pillar hub and the WP Mail SMTP spoke also route to.

  1. Pick the provider.

    • Postmark. Built for transactional mail. Its free plan allows 100 emails per month for testing, deliverability evaluation, and low-volume side projects; Postmark says it never expires.
    • SMTP2GO. 1,000 emails per month free, with no stated expiry. Fits mixed transactional and light-marketing traffic.
    • Mailgun. 100 emails per day on the free plan, with no stated expiry. Sensible when other Mailgun infrastructure is already in the stack.
    • SendGrid. 100 emails per day for the first 60 days, then paid 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. Add the connection in FluentSMTP. Settings → FluentSMTP → Add Connection, pick the provider, paste the API key or SMTP credentials from the provider dashboard, set the From Email, save.

  4. Route the traffic. Either delete the old “Other SMTP” M365 connection outright, or leave it in place as a routed fallback for a week while the new connection is monitored. FluentSMTP’s multi-connection routing lets both live at once, which is an ergonomic advantage over WPMS’s single-mailer model for this migration.

  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.

Which path when

Take Path A when the site’s identity as the M365 mailbox owner 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 assumes the operator can register an app in the Entra admin center, and can reach an administrator if the tenant requires one to consent. FluentSMTP’s Outlook connection is free at the plugin level; the ongoing cost is the app registration the site now owns and the client secret that has to rotate before its 24-month expiry.

Take Path B when any Path A prerequisite is a no: no Entra access, no administrator to consent where the tenant requires one, or no appetite for owning an app registration and a rotating secret indefinitely. Transactional providers deliver contact-form notifications and order receipts more reliably than a repurposed mailbox does, cost nothing at typical WordPress-transactional volume, and remove the tenant-admin coordination step. Reseller-provisioned M365 tenants are Path B by default.

For a site that pays for M365 anyway and has an in-house admin, Path A is the cleaner long-term answer; for everyone else, Path B removes the tenant-admin dependency entirely.

When neither path fits

The reader who wants M365 as the sender identity but cannot register an Entra app 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.

The reader with a WP Mail SMTP Pro licence already paid for is on the wrong spoke; WP Mail SMTP + Microsoft 365 migration is the right page, and WPMS Pro’s One-Click Setup skips the manual Entra registration this page walks.

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 gave a redirect URI under options-general.php (FluentSMTP’s App Callback URL is a REST address ending in fluent-smtp/outlook_callback), said only Global Admins can grant admin consent and that the connection always needs it, and left out pasting the access code into FluentSMTP.
  • 2026-11-25: an earlier version called WP Mail SMTP’s One-Click a Microsoft-published app, gave Mailgun’s free plan as 5,000 emails a month for three months (Mailgun lists 100 a day), and gave no source for what it called the two most common causes of a later 535 5.7.139 or 550 5.7.30. 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.
  • 2026-11-25: an earlier version said the log fills with 550 5.7.30 when the default goes off in December 2026. 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-02: an earlier version listed ZeptoMail among FluentSMTP’s native mailers; FluentSMTP has no ZeptoMail connection in its settings.
  • 2026-12-02: an earlier version said SendGrid has the broadest name recognition and called Postmark the highest-reputation option for transactional-only mail, without a supporting source for either claim.