logo
search
Exchange Connection Problems

How to Fix WP Mail SMTP Error 535 5.7.139 Authentication Unsuccessful

Chanuka GeekiyanageChanuka Geekiyanage Oct 9, 2026 869 views

Question details

The user needs to resolve an SMTP authentication failure when connecting a Microsoft 365 account to WP Mail SMTP.

How to Fix WP Mail SMTP Error 535 5.7.139 Authentication Unsuccessful
Product
Microsoft 365 / WP Mail SMTP
Device & OS
not provided
Scenario
Configuring WordPress to send emails using a Microsoft 365 account via WP Mail SMTP plugin.
Observed behavior
The connection fails with Error 535 5.7.139 Authentication Unsuccessful, even after configuring App passwords, MFA, and disabling default security settings.
Before you start

Ensure you are logged into the Microsoft 365 Admin Center with a different Global Administrator account, as you will need to modify the permissions of the affected SMTP account.

Solution 1Recommended

Remove Administrator Privileges from the SMTP Account

Microsoft 365 enforces strict security policies on administrator accounts that block basic SMTP authentication. Demoting the account to a standard user removes these restrictions.

Accounts with global or specialized admin roles in Microsoft 365 are subject to elevated security defaults. Standard troubleshooting steps like generating App Passwords or toggling MFA will not override these account-level security blocks for SMTP.

1
Access Active Users

Log in to the Microsoft 365 Admin Center. On the left sidebar, navigate to 'Users' and then click on 'Active users'.

2
Select the Affected Account

Find and click on the user account that you are using for the WP Mail SMTP connection to open its properties panel.

3
Manage Roles

In the account panel, go to the 'Account' tab. Under the 'Roles' section, click on 'Manage roles'.

4
Remove Admin Access

Select the 'User (no admin center access)' option to strip administrator privileges from this account, then click 'Save changes'.

5
Wait and Retest

Wait for the permission changes to fully propagate across Microsoft's servers, then go back to your WordPress dashboard and send a test email via WP Mail SMTP.

Remove Administrator Privileges from the SMTP Account
Propagation Time: Role modifications in Microsoft 365 do not take effect instantly. It typically takes about 2 hours for the changes to fully propagate and for SMTP authentication to start working.
Free Microsoft Office alternative

Boost Your Productivity with WPS Office

While configuring your Microsoft 365 email environments, you might also be looking for a cost-effective, high-performance office suite. WPS Office provides a lightweight, free alternative to Microsoft Office for all your document needs.

  1. 1. Download the Installer: Visit the official WPS Office website and click the free download button for your operating system.
  2. 2. Install WPS Office: Run the downloaded setup file and follow the quick on-screen instructions to install the suite.
  3. 3. Open Your Files: Double-click any existing Microsoft Office document to open, edit, and save it directly in WPS Office.
Fully compatible with Microsoft Word, Excel, and PowerPoint formats (.docx, .xlsx, .pptx).Lightweight architecture ensures fast launch times and minimal system resource usage.All-in-one tabbed workspace to manage documents, spreadsheets, and PDFs seamlessly.Free to use with a familiar interface that requires zero learning curve.
QA img-9

Frequently Asked Questions

Why does Microsoft 365 block SMTP authentication for admin accounts?

Microsoft implements strict security defaults to protect highly privileged administrator accounts from unauthorized access. These security policies automatically block legacy protocols like basic SMTP authentication, regardless of other settings.

Will an App Password fix Error 535 5.7.139?

If the account has administrator privileges, an App Password will not bypass the error. The account-level security restriction must be resolved first by changing the user role to 'User (no admin center access)'.

How long does it take for Microsoft 365 role changes to apply?

After modifying user roles in the Microsoft 365 Admin Center, it can take up to two hours for the changes to fully sync across all Exchange servers. SMTP authentication will fail until this sync is complete.