Having trouble sending emails from WordPress using your Outlook/Office365 account? We’re here to help! This is a step-by-step tutorial on setting up Outlook or Office365 API with WordPress.
Configuring Fluent SMTP with Office 365 Emails #
Hover over settings and go to Fluent SMTP Dashboard. If this is the first time you are using Fluent SMTP you will see the list of available Mailer, go ahead and select Microsoft.

If you already have one or multiple SMTP driver setups and now you want to add Office 365 also then go to the Settings Tab of Fluent SMTP and select Add New Connection. Now again all the available mailers will appear from where you need to select Microsoft.

After selecting Microsoft as the mailer, a very simple settings window will open as shown on the screenshot below.

In this part, you need to set up “From Email“, “From Name“, “Application Client ID” and “Application Client Secret” and click the save button.
From Email: The “From Email” should be the email you verified with Microsoft.
From Name: From name can be anything you want. The best practice is to use the combination of your name and company name. For example, I would choose something like “Jewel From WPManageNinja” where Jewel is the first name of the CEO and WPManageNinja is the company. The Application Client ID and Application Client Secret will be provided by Microsoft.
How to get API Key and Secret #
- Login to https://portal.azure.com/#home
- Search For “App Regitstrations”

- Click on “New Registration” Button

- Fill Up the form

- Copy the application ID and paste in FluentSMTP as Application Client ID

- Go to Certificates & secrets and Create a Client Secret

- Copy the value and paste in FluentSMTP as Application Client Secret

Then click on the “Authenticate with Office365 & Get Access Token” button in FluentSMTP and you will be asked to authenticate the app and after complete the process you can see the screen like this

Copy the access code and paste in FluentSMTP

Then click Save Connection Settings.
That’s it. Now you can send your WordPress emails using Office365 Mail API.
Hi, is it possible to send more than 4MB as an attachment with the office365 extension?
Yeah, but beware of spam and the website’s responsiveness issue. Email clients may not take this positively.
Hello,
I setup the fluent SMPT and the email works fine. After a couple of hours I receive error “{
“code”: 423,
“message”: “CompactToken parsing failed with error code: 80049217”,
“errors”: [
“CompactToken parsing failed with error code: 80049217″
]
}”
I make a reauthentication, it works, but after an hour I issue the same error.
Can someone knows how to fix it?
Hi Fotid,
Not sure why that is happening. Please submit a support ticket.
Is this solved? Mine also is only valid for one hour.
Please make sure you have the latest version and configured the plugin by following the latest documentation. If this doesn’t help, please submit a support ticket: https://wpmanageninja.com/support-tickets/#/
Be careful when copying the API secret that you copy the Value NOT the Secret ID otherwise you will get the error CompactToken parsing failed with error code: 80049217
Hello
I set up with Outlook/Office365 API Settings I got an error on below.
“code”: 423,
“message”: “The user account which was used to submit this request does not have the right to send mail on behalf of the specified sending account., Cannot submit a message.”,
“errors”: [
“The user account which was used to submit this request does not have the right to send mail on behalf of the specified sending account., Cannot submit a message.”
]
Could you tell me to fix this?
Hi Faye,
I guess you haven’t verified the email that you have used to setup Outlook/Office365 SMTP. Can you please verify an email address in your Microsoft account and try again.
Hi there,
I’m getting this error, could you please advise me what might be wrong please?
Regards,
Val
Ooops, forgot to post the error 🙂
CompactToken parsing failed with error code: 80049217
Please disregard my email, I’ve re-created the secret and now it seems to work perfectly.
Thank you again for your fluentSMTP, its fantastic!
Hi I authenticated the Office365 account successfully but when I try a test I get this error:
“The mailbox is either inactive, soft-deleted, or is hosted on-premise.”
Can you help?
Hi Damian, Please check if your email address is verified. If that’s not the issue, you can always submit a support ticket: https://wpmanageninja.com/support-tickets/
I was using the free version of WP Mail SMTP and when I installed Fluent SMTP it imported the PHP settings. Is it okay to have the PHP mail and Outlook settings at the same time or should I delete the PHP record once I’ve connected Office 365/Outlook?
Hi Paul, FluentSMTP normally imports your primary email configuration. And in this case, PHP was your primary email configuration. You can keep using both PHP and Outlook. Just select the default connection you want to use.
Is it possible to set this up to send from either an Alias or Shared Mailbox address?
Hi there, yes, you can set up alias mailboxes with FluentSMTP.
Is there a specific help for how to do this? I looked around and could not find anything.
For example, I have email@domain2.com set up as an alias for email@domain1.com. But any emails sent via FluentSMTP are sent from email@domain1.com, despite email@domain2.com being configured in the settings.
I could convert email@domain2.com into a Shared Mailbox if it would work better.
Thanks for your help. I just discovered this plugin and it looks great so far.
Hi holocron,
Our support isn’t sure yet. But they can certainly test this if you open a support ticket: https://wpmanageninja.com/support-tickets/
Can you provide some direction on how to set it up to send from an alias or sharemailbox?
I’m not seeing how to do this.
is it possible to setup simple outlook account ( not office 365) for email receiving and sending?
Hi Malik,
Yes, you can set up Outlook SMTP for both.
Disable duplicate outgoing messages.
Sorry for the English, I use a translator.
Tell me how to make sure that the mail that is sent from the site is not displayed or duplicated in my outgoing messages in the mail client. I don’t need her there. I use Outlook mail.
Hi Ed, you need to disable this by going to Account Settings > Account Settings > IMAP > Change
Hi
I followed all the steps but the APP calback url that is given is https://mycompanyname/index.php?rest_route=/fluent-smtp/outlook_callback and so when i try to use this URL i get this error “failed to create Fluent SMTP wp connection application. Error detail: URL may not contain a query string.”
Can you tell me how to solve this please?
thanks
Hi Andreia, this needs to be tested. Please submit a support ticket: https://wpmanageninja.com/support
How many emails can I send per day from Outlook SMTP?
Hi Rafiqul, you can send 300 emails per day with outlook.
hello, i have a problem in last step after the verification where the reply does not match, this is the error message: AADSTS50011: The reply URL specified in the request does not match the reply URLs configured for the application: ‘a37e6590-6551-4aa7-9566-92eda7ce2add’.
ok i figured it out, just my callback and website starts with http so i have to configure it to go through localhost
OK, but If I use office 365 paid account, how many emails can I send per day?
Hi Rafiqul, this depends entirely on Microsoft. Microsoft does NOT clearly state how much it will increase your daily email send limit, they do advertise that your daily limit will be increased.
Helo, I am trying to set up the SMTP, I followed all steps leading up to the authentication but I don’t understand how to authenticate after clicking the “Authenticate with Office365 & Get Access Token” button. It open up a Access Token entry with the message to:
“Please send test email to confirm if the connection is working or not.”
But how do I send a test email?? There are no extra instructions and this is very confusing. I sent a random email from the email provider to myself to see if that did anything but it doesn’t. I clicked on the “email test” button witing WP Dashboard in the Fluent SMTP tab but its says “plugin not configured correctly”. Please advise how I am suppose to authenticate and send a test email.
Hi Torrey, I think you’re doing something wrong. When you click the access token button, it’s supposed to seek permission to send emails as you. And upon granting permission, you should see the access token. Please feel free to contact our support if that’s not the case with you.
Same error:
{
“code”: 423,
“message”: “CompactToken parsing failed with error code: 80049217”,
“errors”: [
“CompactToken parsing failed with error code: 80049217”
]
}
I use ATT/Yahoo for my email service and all sending and receiving is via my Outlook 365 account.
How do I set up my Fluent form data to arrive at my inbox using my ATT/Yahoo email address?
Are you guys Microsoft Partners? I just tried to connect Microsoft365 to FluentSMTP in thier Azure portal and got the following error:
We’re unable to complete your request
unauthorized_client: The client does not exist or is not enabled for consumers. If you are the application developer, configure a new application through the App Registrations in the Azure Portal at https://go.microsoft.com/fwlink/?linkid=2083908.
Team, how to verify the email . it says user dont have send-as permission while sending test message for office 365
Be careful when copying the API secret that you copy the Value NOT the Secret ID
How can I fix this issue?
WP / FluentSMTP / Microsoft
Cannot send mail. Daily Message/Recipient limit exceeded. Follow the instructions in your Inbox to verify your account., WASCL UserAction verdict is not None. Actual verdict is RefuseQuota, ShowTierUpgrade.
In the Email Logs, clicked Retry and it seems to only allow me two per day. Does that mean if someone fills out the form it will fail to send for the rest of the day?
Never mind. I needed to verify my account.
100% working
Hi,
I install other SMTP plugins but that not worked then I deactivate and delete it now I installed FluentSMTP and configure it successfully. after configuration, I sent a test email, and the message showed successfully sent but not receiving any email in the inbox or junk.
But there is an error on my dashboard
The FluentSMTP plugin depends on wp_mail pluggable function and plugin is not able to extend it. Please check if another plugin is using this and disable it for FluentSMTP to work!
Possible Conflict: /home/(path)/wp-includes/pluggable.php:182
Can you help me with how I can resolve it?
Thank you
Hi Muhammad, please submit a support ticket: https://wpmanageninja.com/support