Exchange Connection Problems

Fix Gmail Send Mail As Error 535 with Microsoft 365 SMTP

Huda QurayshiHuda Qurayshi Nov 18, 2026 870 views

Question details

Send mail from Gmail using a business Microsoft 365 Outlook address.

Fix Gmail Send Mail As Error 535 with Microsoft 365 SMTP
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.
Before you start

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.

Solution 1Recommended

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.

1
Open Gmail account settings

In Gmail on the web, select Settings, then See all settings, and open the Accounts and Import tab.

2
Check the sending address

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.

3
Review the SMTP connection

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.

4
Save and test

Save the settings, complete any verification Gmail requests, and send a test message from the Microsoft 365 address.

Check the Gmail Send Mail As address and SMTP settings
Web sign-in does not confirm SMTP access: Outlook on the web and SMTP can use different authentication methods and policies, so a successful web sign-in does not guarantee that Gmail can authenticate.
Free Microsoft Office alternative

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.

Open and edit compatible document attachments from your mail workflowCompatible with Microsoft Word, Excel, and PowerPoint formatsFamiliar office interface for a smoother transitionFree and lightweight office suite
microsoft office alternative - wps office

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.