How to Fix WP Mail SMTP Error 535 5.7.139 Authentication Unsuccessful
Question details
The user needs to resolve an SMTP authentication failure when connecting a Microsoft 365 account to WP Mail SMTP.

- 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.
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.
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.
Log in to the Microsoft 365 Admin Center. On the left sidebar, navigate to 'Users' and then click on 'Active users'.
Find and click on the user account that you are using for the WP Mail SMTP connection to open its properties panel.
In the account panel, go to the 'Account' tab. Under the 'Roles' section, click on 'Manage roles'.
Select the 'User (no admin center access)' option to strip administrator privileges from this account, then click 'Save changes'.
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.

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. Download the Installer: Visit the official WPS Office website and click the free download button for your operating system.
- 2. Install WPS Office: Run the downloaded setup file and follow the quick on-screen instructions to install the suite.
- 3. Open Your Files: Double-click any existing Microsoft Office document to open, edit, and save it directly in WPS Office.

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.




