Providers
Connecting Microsoft 365 with OAuth: what changes vs SMTP
By mailers.io team Published 5 min read
public/media/blog-microsoft-365-oauth-setup-cover.webp Many teams want to send from a Microsoft 365 mailbox but run into the same wall: SMTP AUTH is switched off in their tenant, or an admin does not want an app password floating around. mailers.io connects to Outlook and Microsoft 365 mailboxes a different way, with Microsoft sign-in and the Graph API. This post explains the connection, the permissions, and the two behaviours that surprise people: the admin approval screen and the Sent Items folder.
Graph instead of SMTP AUTH
There are two common ways for an app to send as a Microsoft 365 user. One is SMTP AUTH, the old submission protocol. It depends on a tenant setting that many organizations turn off, and Microsoft has been moving basic (password) authentication for it toward removal. The other is Microsoft Graph, the HTTPS API, which sends a message on behalf of a signed-in user.
mailers.io uses Graph. It posts the message to the sendMail endpoint and Microsoft answers that it was accepted. Because it is a different channel, you do not need to enable SMTP AUTH for the mailbox, and no password is stored for sending. If you do want SMTP with an app password for a mailbox, connect it as a generic SMTP server instead; the two are separate options.
What you approve
Microsoft’s consent screen lists three delegated permissions:
- Mail.Send, to send mail as the signed-in user.
- User.Read, to read the basic profile, mainly the mailbox address.
- offline_access, so the app can keep working after you close the browser, using a refresh token.
None of these lets the app read the contents of your mailbox. mailers.io stores the refresh token encrypted and refreshes the short-lived access token itself when a send needs one.
One rule is stricter than with Gmail. A Microsoft mailbox must match the From address exactly. Exchange refuses a “send as” it did not grant, so a server connected as [email protected] sends mail from that address, not from any other address on the domain. Create one server per sending mailbox.
Connect a mailbox, step by step
- Open Sending, then Servers, then Add server, and choose Outlook / Microsoft 365.
- Select Continue to Microsoft and sign in with the mailbox you want to use.
- Approve the three permissions.
- Back in mailers.io, run Test the connection.
- Set a speed limit and daily cap that fit Microsoft’s limits for your tenant (see Microsoft 365 sending limits).
The page at /integrations/microsoft-365 shows the same flow.
When the screen says “Need admin approval”
Microsoft lets a tenant admin switch off user consent. When that is the case, you see “Need admin approval” and cannot continue by yourself. The fix is on the admin’s side: the admin approves the app once for the organization in the Entra admin center, under Enterprise applications, or through the admin consent workflow if the tenant uses one. After that, every user in the tenant can connect their own mailbox.
Tenants that only allow apps from verified publishers behave in the same way, so if you are the admin and you want to check what you are approving, the consent screen names the publisher.
The Sent Items folder fills up
mailers.io sends the message to Graph as a full MIME body. In this mode Microsoft always saves a copy in the mailbox’s Sent Items. There is no option to skip it, and mailers.io cannot work around that. For one person sending a few messages, you will not notice. For a campaign, the folder grows at the same rate as the send.
Practical advice:
- Use a mailbox that is dedicated to sending, not a person’s everyday inbox.
- Check the mailbox’s storage and any retention policy on Sent Items before a large campaign.
- Do not point a shared, low-quota mailbox at a bulk send.
Also keep attachments small, around 2 MB. Graph accepts a request of up to 4 MiB with the message encoded, which works out to a message of about 3 MiB.
Bounces and replies
There is no provider webhook for this connection. A rejected recipient shows up as an error at send time when Microsoft reports it right away. For bounces that arrive later and for replies, add an IMAP bounce or reply mailbox. That also lets a sequence stop when someone answers; see how sequences stop on reply.
When the connection stops working
Microsoft’s refresh tokens last 90 days and replace themselves each time they are used. A mailbox that is not used for 90 days needs a reconnect. A token is also revoked when an admin resets the password in the admin center or revokes the user’s sessions. A user changing their own password does not revoke it. Conditional Access rules can also demand a fresh sign-in, for example a new MFA or device requirement. mailers.io treats that the same as a revoked grant.
In every case the result is the same: the server is disabled, taken out of rotation, and marked as revoked in its panel with a Reconnect button. Reconnect asks you to confirm with your password, sends you through Microsoft again, and then you re-enable the server. With more than one server connected, mail continues through the others in the meantime, because failover is part of the default routing rule on every plan.
There is no way to revoke a single token at Microsoft’s side from mailers.io. If you want the access removed completely, a tenant admin removes the app from Enterprise applications; the other post in this series, revoking mailbox access safely, covers the order of steps.
Mixing with other servers
A Microsoft 365 mailbox is best for person-to-person style outreach at modest volume. For high-volume mail, connect a dedicated provider next to it and let mailers.io spread the sending according to the limits you set. Rotating senders across mailboxes explains how that works, and sending servers lists what you can connect.
A short checklist
- Use a dedicated mailbox and keep one server per sending address.
- Approve the three permissions yourself, or ask the tenant admin to approve once.
- Test the connection before sending.
- Set limits under Microsoft’s, and check Sent Items storage.
- Add an IMAP mailbox for bounces and replies.
- Write down who can revoke the app in Entra.
With those in place, the connection needs no SMTP AUTH, no stored password, and very little maintenance beyond the occasional reconnect.
Questions and answers
Do I have to turn on SMTP AUTH in Microsoft 365?
No. mailers.io sends through Microsoft Graph, so SMTP AUTH is not used and there is no Basic Auth.
Why do I see Need admin approval?
Your tenant admin has turned off user consent. The admin can approve the app once for the whole organization, after which you can connect.
Where do the messages go after sending?
Each message is saved in the mailbox's Sent Items. A busy campaign fills that folder at the same rate it sends.
Written by the mailers.io team. Published .