Fix Gmail Send Mail As Error 535 with Microsoft 365 SMTP
Question details
Send mail from Gmail using a business Microsoft 365 Outlook address.

- Product
- Gmail and Microsoft 365 Exchange Online
- Device & OS
- not provided
- Scenario
- The user configured Gmail's Send mail as feature to send through a Microsoft 365 business mailbox.
- Observed behavior
- Gmail returns error 535 5.7.3 Authentication unsuccessful, although the same credentials work in Outlook on the web.
Have the full Microsoft 365 email address and Gmail Send mail as settings available. If the account is managed by an organization, ask its Microsoft 365 administrator about SMTP authentication requirements.
Check the Gmail Send Mail As address and SMTP settings
Use this first to rule out an address mismatch or incorrect Exchange Online server settings.
In Gmail on the web, select Settings, then See all settings, and open the Accounts and Import tab.
Under Send mail as, find the Microsoft 365 address and select edit info. Confirm that the From address matches the mailbox account used for SMTP authentication.
Continue to the SMTP settings and verify the server is smtp.office365.com, the port is 587, and the secured connection uses TLS. Enter the full Microsoft 365 email address as the username.
Save the settings, complete any verification Gmail requests, and send a test message from the Microsoft 365 address.

Ask the Microsoft 365 administrator to review SMTP authentication
Use this when the address and server settings are correct but Gmail still returns error 535.
Review domain authentication after resolving SMTP sign-in
Check SPF and DKIM if messages are accepted but have domain authentication or delivery problems.
Work with Office email attachments in WPS Office
WPS Office is a free, lightweight alternative for working with documents received through Gmail or Microsoft 365. Its familiar interface and Microsoft Office format support make it easy to move existing files into your workflow. It does not fix the SMTP authentication error.

Frequently Asked Questions
Why does Outlook on the web work when Gmail reports error 535?
Outlook on the web and Gmail's SMTP connection can use different authentication methods. Microsoft 365 policies may allow web sign-in while blocking the SMTP method Gmail is using.
Which SMTP server and port should I use for Exchange Online?
In Gmail's Send mail as SMTP settings, use smtp.office365.com on port 587 with TLS, and enter the full Microsoft 365 email address as the username.
Where can an administrator check Authenticated SMTP?
In the Microsoft 365 admin center, go to Users > Active users, select the account, and open Mail > Manage email apps. The administrator should also review organization-wide security and authentication policies.
Can an SPF or DKIM record cause SMTP error 535?
Error 535 indicates an SMTP authentication failure. SPF and DKIM generally affect authentication and delivery of sent messages, rather than the initial SMTP sign-in.
What if my organization does not allow Gmail's SMTP authentication method?
Ask the Microsoft 365 administrator or Google support about a compatible, approved sending method. If the Gmail configuration cannot meet the organization's requirements, use an approved mail client or sending service.




