
You need the Office 365 SMTP settings for an app, a script, a WordPress plugin, or the scanner down the hall. They're in the first table below.
The catch: the username-and-password version of these settings stops working by default at the end of December 2026, when Microsoft turns off Basic authentication for SMTP AUTH in Exchange Online. Anything that signs in to smtp.office365.com with a mailbox password or an app password is on the list.
These are Microsoft's settings for SMTP AUTH client submission, the method where a device or app signs in to a Microsoft 365 mailbox and sends as that mailbox (Microsoft).
| Setting | Value |
|---|---|
| SMTP server | smtp.office365.com (use the name, not an IP address) |
| Port | 587 (recommended) or 25 |
| Encryption | STARTTLS, with TLS 1.2 or TLS 1.3 |
| Username | The full email address of the sending mailbox |
| Authentication | Mailbox password (Basic auth) or an OAuth token |
| Sending limits | 10,000 recipients per day and 30 messages per minute, per mailbox |
A few details trip people up:
5.7.60 SMTP; Client doesn't have permissions to send as this sender.If your config has those values and a password field, you're using Basic auth. That's the part that changes.
Microsoft's Exchange Team published the updated timeline in January 2026 (Exchange Team blog):
| When | What happens |
|---|---|
| Now to December 2026 | SMTP AUTH Basic auth works as it does today. |
| End of December 2026 | Basic auth for SMTP AUTH is disabled by default for existing tenants. Admins can turn it back on. |
| Tenants created after December 2026 | Basic auth for SMTP AUTH is unavailable by default. OAuth is the supported method. |
| Second half of 2027 | Microsoft announces the final removal date. |
What breaks: anything that sends a username and password to smtp.office365.com. That includes app passwords: an app password is still a password sent over Basic auth, so it stops working when Basic auth does. Microsoft's general guidance on retiring Basic auth makes the same point about app passwords (Microsoft).
What keeps working: SMTP AUTH with OAuth, SMTP relay through a connector, and API-based sending like Microsoft Graph. None of those send a mailbox password. Direct send doesn't use a password either, but it's on its way out too (more on that below).
As of early December 2026, Microsoft hasn't published the exact day or the steps to turn Basic auth back on. Here's what's confirmed:
That last step is a stopgap. Microsoft will name a final removal date in the second half of 2027, and after that there's nothing to turn back on. Treat the re-enable switch as runway for the senders you missed, not as a plan.
Start with your own code and config. Search for the hostname:
grep -rnI "smtp.office365.com" --exclude-dir=node_modules --exclude-dir=.git .That covers config in any file format, from .env and YAML to .config, .properties, and .ini. It can't see settings stored in a database or an admin screen, and that's where a lot of senders keep them: WordPress SMTP plugins save to the database, and SaaS tools keep credentials in their own settings pages.
So make a list of everything that stores a mailbox password: WordPress SMTP plugins, multifunction printers and scanners, monitoring and backup tools, ERP and line-of-business apps, cron scripts, and SaaS tools where someone pasted in "the noreply mailbox" credentials years ago.
If you're the Microsoft 365 admin, Exchange Online PowerShell tells you where SMTP AUTH is allowed. Check the organization setting first:
Get-TransportConfig | Format-List SmtpClientAuthenticationDisabledThen list the mailboxes that override it and turn SMTP AUTH on:
$Users = Get-CASMailbox -ResultSize unlimited
$Users | where {$_.SmtpClientAuthenticationDisabled -eq $false}Those mailboxes are your candidates. To see which ones actually sign in with a password, open Entra ID > Monitoring & health > Sign-in logs, add the Client App column, and filter to the legacy authentication protocols (Microsoft). Every hit there is a sender to fix.
Microsoft documents several ways for devices and apps to send email with Microsoft 365, and recommends High Volume Email and Azure Communication Services Email as alternatives to SMTP AUTH with Basic auth (Microsoft).
| Option | How it authenticates | Who it can send to | What you need |
|---|---|---|---|
| SMTP AUTH with OAuth | OAuth token over smtp.office365.com | Inside and outside your org | An app registered in Microsoft Entra, SMTP.Send or SMTP.SendAsApp, and a client that speaks XOAUTH2 |
| SMTP relay (connector) | TLS certificate or static IP on an inbound connector | Inside and outside your org | Port 25, a certificate or a static IP not shared with another org, and an inbound connector |
| Direct send | None (treated like anonymous internet mail) | Your Microsoft 365 mailboxes only | Port 25, plus SPF, DKIM, and DMARC set up for your domain |
| High Volume Email (HVE) | HVE account credentials or OAuth | Internal recipients only | An HVE account and a pay-as-you-go billing policy |
Microsoft Graph sendMail | OAuth (Mail.Send) over HTTPS | Inside and outside your org | An Entra app and code that calls an API instead of SMTP |
| Azure Communication Services Email | Through your Azure Communication Services resource | Inside and outside your org | An Azure resource and a sending domain (Azure-managed or your own) |
A few specifics that change the decision:
SMTP.SendAsApp permission, then an admin registers the app's service principal in Exchange with New-ServicePrincipal and grants it access to the mailbox with Add-MailboxPermission (Microsoft). It works, but there are a lot of steps, and your SMTP library has to support XOAUTH2.Set-OrganizationConfig -RejectDirectSend $true rejects anonymous mail from your own domains that doesn't match an inbound connector (Microsoft), and that setting became generally available for worldwide tenants in November 2026 (Exchange Team blog). If a printer uses direct send today, move it to relay.Match the fix to what's sending and who's receiving.
A printer or scanner on your network. Use SMTP relay with a certificate-based connector, or an IP-based one if the device can't present a certificate. Point the device at your MX endpoint (for example, contoso-com.mail.protection.outlook.com) on port 25. Relay needs neither a password nor OAuth support on the device, and older hardware usually has neither. Skip direct send, even if scans only go to staff: Microsoft is moving to turn it off by default.
An internal app that emails staff. Payroll alerts, IT monitoring, helpdesk updates. Use HVE with OAuth. It's built for this, keeps app mail out of user mailboxes, and has no per-minute limit. You pay per recipient, so check the volume before you move a chatty monitoring tool onto it.
A script or internal tool you own. Switch to SMTP AUTH with OAuth if your library supports XOAUTH2, or call Graph sendMail if you'd rather work with an HTTP API. Either way, the app gets its own identity instead of borrowing a person's password.
A product that emails your customers. Password resets, receipts, alerts, verification codes. Move it off Microsoft 365 entirely. This mail was never a good fit for a staff mailbox, and the December change is a good excuse to fix it.
One caveat: if your scanner sends through a cloud-hosted print service, relay is out, because Microsoft doesn't support relaying from third-party hosts. Use OAuth SMTP if the service supports it, or HVE if it only sends to staff.
Most of what breaks in December isn't the scanner. It's product email: the password reset, the order confirmation, the "your export is ready" message, all sent from noreply@yourcompany.com through a Microsoft 365 mailbox someone set up years ago.
That setup has problems that have nothing to do with Basic auth. It caps you at 10,000 recipients a day per mailbox. It ties customer-facing deliverability to the same tenant your staff uses. And it means a password reset depends on one shared password nobody wants to rotate.
The fix is a transactional email service: Amazon SES, SendGrid, Postmark, or Resend. You authenticate with an API key, verify your sending domain with SPF and DKIM, and get volume limits built for app email. Microsoft 365 goes back to being email for people.
If you'd rather stay inside Microsoft, Azure Communication Services Email is the option Microsoft points to for external recipients. It's one sending service, so failover to a second provider, templates your team edits without a deploy, and SMS or in-app messages are still separate pieces you'd add.
Courier sits on top of those providers. You connect one or more of them, keep your templates in one place, and send from your app with one call:
import Courier from "@trycourier/courier";
// Reads your API key from the COURIER_API_KEY environment variable
const courier = new Courier();
await courier.send.message({
message: {
to: { email: "jordan@example.com" },
template: "password-reset",
data: {
name: "Jordan",
resetUrl: "https://app.example.com/reset?token=abc123",
},
},
});In the template, {{data.name}} and {{data.resetUrl}} fill in from the data object. Connect a second provider and Courier fails over to it when the first one returns an error. Every message shows up in Courier's logs with its delivery status, so "did the reset email go out?" has an answer. When you're ready, the same send can add SMS, push, or an in-app message.
One thing to know if you already use Courier: the SMTP integration takes a host, username, and password, so if it points at smtp.office365.com with an app password, it's affected the same way as everything else. Swap it for a transactional provider before the end of December.
smtp.office365.com, port 587, STARTTLS, and a mailbox sign-in.Start this week with the grep and the sign-in logs. The list of senders is always longer than you expect, and finding them now beats finding them through a ticket about missing password resets. If you're moving product email, connect a provider in Courier and send your first message from your app instead of a mailbox. If you hit a 535 error on the way, here's what it means, and the SMTP error code reference covers the rest.
Use smtp.office365.com as the server, port 587, and STARTTLS with TLS 1.2 or 1.3. Sign in with the full email address of the sending mailbox. Each mailbox can send to 10,000 recipients per day and 30 messages per minute.
Yes, with OAuth. What changes is Basic auth: at the end of December 2026, Microsoft disables username-and-password sign-in for SMTP AUTH by default on existing tenants. Admins can turn it back on until Microsoft's final removal date, which it plans to announce in the second half of 2027.
Only while Basic auth is on. An app password is a password sent over Basic auth, so it stops working when Basic auth for SMTP AUTH is disabled. Move the app to OAuth, SMTP relay, or an API-based provider.
Exchange Online rejected the sign-in, and the text after the code names the reason. Read that reason before you change anything, because 5.7.139 covers more than one cause. For this error and the related 535 5.7.3 Authentication unsuccessful and 5.7.57 Client not authenticated to send mail, Microsoft's troubleshooting steps start with three checks: SmtpClientAuthenticationDisabled on the mailbox, security defaults, and any Conditional Access policy that blocks legacy authentication (Microsoft). If one of those is blocking password sign-in, move the sender to OAuth or another method instead of turning it back on.
SMTP AUTH signs in to a mailbox at smtp.office365.com on port 587 and sends as that mailbox. An Office 365 SMTP relay uses an inbound connector instead: your device connects to your MX endpoint on port 25 and proves who it is with a TLS certificate or a static IP address. Relay doesn't need a licensed mailbox or a password, but it can't be used from a third-party cloud host.
No. Microsoft supports port 587 (recommended) or 25 for client submission. If a device or app only offers 465, Microsoft says it doesn't support the TLS versions client submission requires.

Add transactional email to a Next.js app
Send the three emails every Next.js app needs from server actions and route handlers with Courier's Node SDK. Courier delivers through the provider you already use, adds failover and a log for every message, keeps the copy in templates you edit without a deploy, and adds SMS or in-app later through one routing field.

FCM changes for 2027: what to migrate and when
Google is retiring FCM device groups and the InstanceId server APIs on September 29, 2027, and new projects lose access on January 1, 2027. Most senders on the HTTP v1 API aren't affected. Here's how to check your code, replace device groups with your own per-user token list, move topic management and token validation to the v1 APIs, and what the move from registration tokens to Firebase installation IDs means for you.

Is Courier HIPAA compliant? BAAs, SOC 2, and controls
Yes, Courier maintains a HIPAA compliance program and signs BAAs with Enterprise customers. Here's what Courier runs, from SOC 2 Type II to continuous security monitoring, what the BAA covers, the controls you get, and the parts of HIPAA compliance that stay with you.