Microsoft 365 Error Codes

How to Fix WP Mail SMTP Pro Office 365 Authentication Errors

Jason MillerJason Miller Oct 14, 2026 871 views

Question details

The user needs to resolve the MailboxNotEnabledForRESTAPI error encountered when using WP Mail SMTP Pro with Microsoft 365.

How to Fix WP Mail SMTP Pro Office 365 Authentication Errors
Product
Microsoft 365
Device & OS
not provided
Scenario
Connecting WordPress to an Office 365 mailbox using the WP Mail SMTP Pro plugin to send emails.
Observed behavior
The system throws a MailboxNotEnabledForRESTAPI authentication error, preventing the WordPress site from sending emails via Microsoft 365.
Before you start

Ensure you have global administrator access to your Microsoft 365 account and admin access to your WordPress dashboard to verify mailbox settings and plugin configurations.

Solution 1Recommended

Verify Mailbox Status and Update SMTP Configuration

Check your Microsoft 365 admin center to ensure the mailbox is active, and update your WP Mail SMTP settings if using an on-premises setup.

The MailboxNotEnabledForRESTAPI error usually occurs when the integrated Microsoft 365 mailbox is inactive, soft-deleted, or hosted on an on-premises Exchange server instead of the cloud.

1
Check mailbox status

Log in to the Microsoft 365 Admin Center, navigate to Active Users, and confirm that the connected mailbox is active and possesses a valid license.

2
Configure on-premises settings

If your mailbox is hosted on-premises rather than in the cloud, navigate to the WP Mail SMTP Pro settings in WordPress and switch the mailer to 'Other SMTP' using your on-premises Exchange SMTP details.

3
Verify application credentials

In the WP Mail SMTP plugin settings, double-check that the Application ID, password, and authentication tokens exactly match those generated in your Microsoft Azure portal.

4
Test an alternative mailbox

If the issue persists, attempt to authenticate using a different active Microsoft 365 mailbox to determine if the issue is isolated to a specific user account.

Verify Mailbox Status and Update SMTP Configuration
Contacting Support: Because WP Mail SMTP Pro is a third-party plugin, you may need to contact their support team for product-specific help, or have a Microsoft 365 global administrator open a service request.
Free Microsoft Office alternative

Discover WPS Office: A Powerful and Free Alternative to Microsoft Office

While troubleshooting backend Microsoft 365 integrations, consider WPS Office for your local productivity needs. It offers a lightweight, highly compatible, and free suite of tools for word processing, spreadsheets, and presentations.

  1. 1. Download the installer: Visit the official WPS Office website and click the Free Download button.
  2. 2. Install the software: Run the downloaded installer file and follow the on-screen instructions.
  3. 3. Start creating: Open WPS Office to instantly start working on your documents, spreadsheets, and presentations.
Fully compatible with Microsoft Word, Excel, and PowerPoint formats.Lightweight installation with blazing-fast launch speeds.Familiar, intuitive user interface requiring no learning curve.Cost-effective alternative to subscription-based office software.
microsoft office alternative - wps office

Frequently Asked Questions

What does the MailboxNotEnabledForRESTAPI error mean?

This error typically means the Microsoft 365 mailbox you are trying to connect via WP Mail SMTP Pro is either inactive, soft-deleted, or hosted on an on-premises Exchange server rather than in the cloud.

Can I use an on-premises Exchange server with WP Mail SMTP Pro?

Yes, but you cannot use the default Microsoft 365 API mailer option. You must select the 'Other SMTP' option in the plugin and enter your on-premises Exchange server's specific SMTP settings.

How do I fix authentication token errors in WP Mail SMTP?

You can resolve token errors by removing the existing connection in the plugin settings, generating a new client secret in your Microsoft Azure portal, and re-authenticating the connection within your WordPress dashboard.