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.