Skip to content
FluentSMTP logo

FluentSMTP

  • Home
  • Features
  • ResourcesExpand
    • Blog
    • Docs
  • FAQ
  • Our PluginsExpand
    • FluentForm

      Fluent Forms

      WPSocialNinja

      WP Social Ninja

      Fluent Support

      Fluent Support

      FluentCRM

      FluentCRM

      WPPayForm

      WPPayForm

      NinjaTables

      Ninja Tables

      Azonpress

      AzonPress

  • Get FluentSMTP
FluentSMTP logo
FluentSMTP

Miscellaneous

  • Token has been expired issue with GMAIL

Functionality

  • Using Multiple SMTP Connections with Fluent SMTP

Drivers

  • Set Up Amazon SES in Fluent SMTP
  • Connect Gmail or Google WorkSpace Emails with FluentSMTP
  • Setting Up Sendinblue Mailer in Fluent SMTP
  • Configure Mailgun in Fluent SMTP to Send Emails
  • Set Up the Pepipost Mailer in Fluent SMTP
  • Set Up the SendGrid Driver in Fluent SMTP
  • Configure SparkPost in Fluent SMTP to Send Emails
  • Setup Outlook with FluentSMTP
  • Set up Fluent SMTP with Any Host or Mailer
  • Configure Postmark in Fluent SMTP to Send Emails

Getting Started

  • Installing Fluent SMTP
  • Home
  • Docs
  • Drivers
  • Setup Outlook with FluentSMTP

Setup Outlook with FluentSMTP

Table of Contents
  • Configuring Fluent SMTP with Office 365 Emails
  • How to get API Key and Secret

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 the App Registration Link
  • 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.

What are your Feelings
Share This Article :
  • Facebook
  • Twitter
  • LinkedIn
  • Pinterest
Still stuck? How can we help?

How can we help?

Updated on July 27, 2021
Configure SparkPost in Fluent SMTP to Send EmailsSet up Fluent SMTP with Any Host or Mailer

42 Comments

  1. Philipp Winzer says:
    July 29, 2021 at 12:59 pm

    Hi, is it possible to send more than 4MB as an attachment with the office365 extension?

    Reply
    1. Nazir Himel says:
      July 30, 2021 at 8:52 am

      Yeah, but beware of spam and the website’s responsiveness issue. Email clients may not take this positively.

      Reply
  2. Fotid says:
    August 12, 2021 at 3:11 pm

    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?

    Reply
    1. Nazir Himel says:
      August 14, 2021 at 7:43 am

      Hi Fotid,

      Not sure why that is happening. Please submit a support ticket.

      Reply
      1. Jan-Willem says:
        September 6, 2021 at 10:24 am

        Is this solved? Mine also is only valid for one hour.

        Reply
        1. Nazir Himel says:
          September 7, 2021 at 1:28 pm

          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/#/

          Reply
    2. Duvan Acevedo says:
      February 9, 2022 at 9:55 pm

      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

      Reply
  3. Faye S says:
    August 16, 2021 at 4:03 am

    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?

    Reply
    1. Nazir Himel says:
      August 16, 2021 at 11:18 am

      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.

      Reply
  4. Val says:
    August 21, 2021 at 8:07 am

    Hi there,

    I’m getting this error, could you please advise me what might be wrong please?

    Regards,
    Val

    Reply
    1. Val says:
      August 21, 2021 at 8:07 am

      Ooops, forgot to post the error 🙂

      CompactToken parsing failed with error code: 80049217

      Reply
      1. Val says:
        August 21, 2021 at 8:14 am

        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!

        Reply
  5. Damian says:
    August 26, 2021 at 10:54 pm

    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?

    Reply
    1. Nazir Himel says:
      September 7, 2021 at 1:35 pm

      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/

      Reply
  6. Paul Cress says:
    August 30, 2021 at 7:45 pm

    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?

    Reply
    1. Nazir Himel says:
      August 31, 2021 at 4:55 am

      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.

      Reply
  7. holocron says:
    August 31, 2021 at 1:25 am

    Is it possible to set this up to send from either an Alias or Shared Mailbox address?

    Reply
    1. Nazir Himel says:
      August 31, 2021 at 5:47 am

      Hi there, yes, you can set up alias mailboxes with FluentSMTP.

      Reply
      1. holocron says:
        August 31, 2021 at 11:41 am

        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.

        Reply
        1. Nazir Himel says:
          September 7, 2021 at 1:44 pm

          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/

          Reply
      2. holocron says:
        August 31, 2021 at 5:49 pm

        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.

        Reply
  8. Malik Tanveer Dhool says:
    September 6, 2021 at 8:17 am

    is it possible to setup simple outlook account ( not office 365) for email receiving and sending?

    Reply
    1. Nazir Himel says:
      September 7, 2021 at 1:30 pm

      Hi Malik,
      Yes, you can set up Outlook SMTP for both.

      Reply
  9. Ed says:
    September 10, 2021 at 9:55 am

    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.

    Reply
    1. Nazir Himel says:
      September 11, 2021 at 12:21 pm

      Hi Ed, you need to disable this by going to Account Settings > Account Settings > IMAP > Change

      Reply
  10. Andreia Fernandes says:
    September 16, 2021 at 3:55 pm

    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

    Reply
    1. Nazir Himel says:
      September 22, 2021 at 6:55 am

      Hi Andreia, this needs to be tested. Please submit a support ticket: https://wpmanageninja.com/support

      Reply
  11. Md Rafiqul Islam says:
    September 27, 2021 at 5:03 pm

    How many emails can I send per day from Outlook SMTP?

    Reply
    1. Nazir Himel says:
      October 4, 2021 at 10:04 am

      Hi Rafiqul, you can send 300 emails per day with outlook.

      Reply
  12. Filip says:
    October 4, 2021 at 7:24 am

    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’.

    Reply
  13. Filip says:
    October 4, 2021 at 7:31 am

    ok i figured it out, just my callback and website starts with http so i have to configure it to go through localhost

    Reply
  14. Md Rafiqul Islam says:
    October 13, 2021 at 7:18 am

    OK, but If I use office 365 paid account, how many emails can I send per day?

    Reply
    1. Nazir Himel says:
      October 13, 2021 at 11:39 am

      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.

      Reply
  15. TORREY MORENO says:
    October 25, 2021 at 5:36 pm

    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.

    Reply
    1. Nazir Himel says:
      October 28, 2021 at 5:57 am

      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.

      Reply
  16. Webmaster says:
    November 17, 2021 at 9:59 pm

    Same error:
    {
    “code”: 423,
    “message”: “CompactToken parsing failed with error code: 80049217”,
    “errors”: [
    “CompactToken parsing failed with error code: 80049217”
    ]
    }

    Reply
  17. Robert says:
    November 18, 2021 at 5:30 pm

    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?

    Reply
  18. Robert says:
    November 18, 2021 at 6:28 pm

    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.

    Reply
  19. Dev says:
    November 25, 2021 at 6:20 am

    Team, how to verify the email . it says user dont have send-as permission while sending test message for office 365

    Reply
  20. Duvan Acevedo says:
    February 9, 2022 at 9:54 pm

    Be careful when copying the API secret that you copy the Value NOT the Secret ID

    Reply
  21. Maria says:
    June 3, 2022 at 12:57 pm

    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?

    Reply
  22. Maria says:
    June 3, 2022 at 1:23 pm

    Never mind. I needed to verify my account.

    Reply

Leave a Reply Cancel reply

Your email address will not be published. Required fields are marked *

Table of Contents
  • Configuring Fluent SMTP with Office 365 Emails
  • How to get API Key and Secret
FluentSMTP logo

© 2022 FluentSMTP A Brand of  WPManageNinja™ | Get Support | Terms & Privacy

  • FluentCRM
  • Fluent Forms
  • Ninja Tables
  • FluentSupport
  • WPSocialNinja
  • WPManageNinja
  • Home
  • Features
  • Resources
    • Blog
    • Docs
  • FAQ
  • Our Plugins
    • Fluent Forms
    • FluentCRM
    • Ninja Tables
    • WP Social Ninja
    • WPPayForm
    • AzonPress
  • Get FluentSMTP