- Solution 1
To resolve this, you will likely need to refresh your access token by following these steps:
1. Navigate to the WP Mail SMTP -> Settings page.
2. Click on the red "Remove OAuth Connection" button to remove the existing Microsoft Outlook mailer connection.
3. Then, reconnect by clicking on the "Allow plugin to send emails using your Microsoft account" button. This will establish a new connection.
- Solution 2
If the above does not resolve the issue, there are a few areas in your Microsoft Azure connection to check:
1) While creating the Azure app registration, the "Supported account types" setting should be set to "Accounts in any organization directory (Any Azure AD directory - Multitenant) and personal Microsoft accounts (e.g. Skype, Xbox)". Please be sure to adjust this setting in Azure.
To confirm if you've already completed this step, please head over to your Azure portal (https://portal.azure.com/) and view your App registrations (you may have to use their search bar to find App Registrations).
In case it helps, the "Supported account types" step is mentioned during the App Registration process in our documentation as well.
2) Another common reason for this error is that you may have copied the ID instead of the Value of the Application Password within your Azure client secret (as shown here).
Please head over to your Azure portal, and in the App registrations > Certificates & secrets section, create a new client secret. Now, you can enter it under your WP Mail SMTP > Settings page and try to reconnect.
3) If you are redirected to the dashboard of your site when you try connecting WP Mail SMTP to Microsoft, can you copy the full URL that shows up after the redirect? This may give us better insights into any technical issues.
- Need more assistance?
If you have already tried these steps and are still getting this or any other error message, please let us know by filling out this form to create a support ticket.