how-to-set-up-wordpress-outlook-mailer-in-wp-mail-smtp_g

How to Set Up WordPress Outlook Mailer in WP Mail SMTP

Want to use your Outlook account as your WordPress mailer and get reliable email deliverability for your WordPress site?

You can use the Outlook mailer for WP Mail SMTP to securely authenticate your WordPress website’s emails with Microsoft’s API. In this post, we’ll show step by step how to set up the Microsoft Outlook mailer in WP Mail SMTP.

Here are the complete steps in this tutorial:

  1. Get Started with WP Mail SMTP
  2. Configure a Microsoft Azure Account
  3. Save Settings and Authorize WP Mail SMTP
  4. Send a Test Email

Want your contact form plugin to be able to send reliable email notifications to people who fill them out? Follow these steps:

WPForms is the best WordPress Form Builder plugin. Get it for free!

How to Set up WordPress Outlook Mailer in WP Mail SMTP

If you’re setting up your WP Mail SMTP with the Outlook mailer, here are the steps on exactly how to do it.

Step 1. Get Started with WP Mail SMTP

To get started setting up your WordPress Outlook mailer, the first step is to install and activate the WP Mail SMTP plugin. For help with this, check out the post how to install a WordPress plugin.

Once you’ve installed and activated the plugin, go to WP Mail SMTP » Settings.

Then at the top of the Settings page, you’ll see the From Email and From Name options. You can skip both of these settings, as these things will be overridden by the settings within your Outlook account (eventually, you’ll notice that both these fields end up disabled).

From Email and From Name in WP Mail SMTP wordpress outlook mailer

Next, we recommend checking the optional Return Path checkbox to Set the return-path to match the From Email. With this enabled, you’ll receive an email if any messages bounce as a result of issues with the recipient’s email.

Set return path to match From Email

Now, you’ll need to scroll down to the Mailer section and select the Outlook option.

select outlook mailer in wordpress outlook mailer

And now that you’ve picked the Outlook mailer, you’ll see a new section appear titled Outlook.

outlook information

To get the info needed for this section, you’ll need to set up a web application within a Microsoft Azure account. We’ll show you exactly what to do next.

Be sure to keep these WP Mail SMTP settings open in a separate tab or window, because you’ll return to that page shortly to paste in all that info.

Want to track all the emails your website sends? Take a look at our post on logging WordPress emails.

Step 2. Configure a Microsoft Azure Account

In order to continue the setup process, you’ll need to have a Microsoft Azure account.

Since you most likely already have a Microsoft email account (through Hotmail, Live, Outlook, Office 365, etc), you can simply log into Microsoft Azure with your existing account credentials.

Just be sure that the email you use for your Microsoft Azure account is the same email address you want to use as the From Email on your website.

If you need to create a brand new account, you can click this link sign up for a free Microsoft Azure account. Also be sure to check that the account you use for signup includes email sending permissions.

Note: While your account is free and this mailer setup does not require use of any paid services, Microsoft will require that you enter a credit card to set up an account to reduce spam signups.

After you’ve decided on the email address, open the Azure Portal.

Create an Application ID

Now that the Azure Portal is open, navigate to the left sidebar and click on All services.

select all services

Next click on Identity in the left sidebar. Then an additional column appears, and you’ll want to click on App registrations on the right.

click on identity then app registrations for wordpress outlook mailer

At the top of the App Registrations page, click on the +New Registration option.

select new registration

In this app registration form, here are the details you’ll need to fill out:

  • Name — This is only for you, so we recommend naming it something like “WP Mail SMTP: yourdomain.com”.
  • Supported Account Types — Select Accounts in any organizational directory and personal Microsoft accounts.

microsoft app registration form example

  • Redirect URI — For the first dropdown, leave this set to Web. Then for the 2nd field, you’ll need to copy this info from your WP Mail SMTP settings (see below).

In order to find the Redirect URI, go back to the tab or window where you left your site’s WP Mail SMTP settings open. Under the Outlook section, you’ll see a field named Redirect URI.

Copy Redirect URI from WP Mail SMTP settings

Copy this info and then paste it into your Microsoft Azure app registration form.

Keep both windows or tabs open in your browser, as we’ll continue to switch between both.

outlook smtp complete app registration

Now, click the Register button to continue.

As soon as this registration form is submitted, you should see a page that includes Application (client) ID.

copy app ID

Here, copy this full ID and paste it into your WP Mail SMTP settings, in the field labeled Application ID.

Paste Application ID into WP Mail SMTP settings

Create an Application Password

Next, you’ll need to generate a password for this app. To do that, click on Certificates & secrets in the left sidebar.

open certificates and secrets menu

Now, scroll down to the Client Secrets section and select +New client secret.

create new client secret for wordpress outlook mailer

An overlay will now appear and you’ll need to fill out a form with these details:

  • Description — This name is only for you, so we recommend a simple name like app_password.
  • Expires — Never

Click on Add.

add a client secret microsoft example

Now once you submit the client secret form, the Application Password will automatically be generated.

copy client secret

Next, copy this password and paste it into your WP Mail SMTP settings in the Application Password field on the WP Mail SMTP window or tab.

Paste client secret into Application Password field in WP Mail SMTP

Set up API Permissions

Now that you’ve got both the Application ID and Application Password filled out in your WP Mail SMTP settings, the next step to continue setting up your WordPress Outlook mailer is to set up API permissions.

To do this, click on API permissions in the left sidebar. Then, click on the +Add a permission option.

outlook smtp add a permission

A page titled Request API Permissions will open. Click the option on the top named Microsoft Graph.

select microsoft graph

Next, fill out a couple pieces of info on this page to continue setting up your Microsoft Outlook mailer:

  • What type of permissions does your API require — Choose the option named Delegated permissions

wordpress outlook mailer select delegated permissions

  • Select permissions — Type in send. Then, from the options that appear, check the box next to Mail.Send.Shared.

wordpress outlook mailer select mail permissions

When you’re ready, click the Add permissions button to continue.

Now, you’ll need to go through this permissions process again but in a slightly different way. To do this, go ahead and once more click on + Add a permission, followed by the Microsoft Graph option.

Here are the new details you’ll need for this 2nd set of permissions:

    • What type of permissions does your API require — Choose the option named Application permissions.

wordpress outlook mailer add app permissions

  • Select permissions — Type in send. Then, from the options that appear, check Mail.Send.

add mail sending permissions outlook smtp

Now, click the Add permissions button when you’re ready to continue.

Great job! Your API permissions are all set up in Microsoft’s system, and you can now finish up the WordPress Outlook mailer configuration in WP Mail SMTP.

Need more leads from your website? Check out our post with tips to create a lead capture form that converts.

Step 3. Save Settings and Authorize WP Mail SMTP

Head back to your WP Mail SMTP settings. You should now have all fields filled out.

After confirming this, click Save Settings at the bottom of the page.

Save WP Mail SMTP settings wordpress outlook mailer

After you’ve saved the settings, scroll down to the Authorization setting. You should now see a button that says Allow plugin to send emails using your Microsoft account. Click this.

Provide authorization for Microsoft account wordpress outlook mailer

As soon as you click this button, you should be redirected to a Microsoft permissions form.

allow permissions screen on microsoft outlook smtp

At the bottom of this form, click Yes.

Now you’ll be redirected back to your WP Mail SMTP settings to finish your WordPress Outlook mailer setup.

At the top of the page, you should see a confirmation letting you know that you’ve successfully connected your Microsoft account.

microsoft api confirmation outlook smtp

Did you know adding a members-only section to your website can help explode your revenue? Check out our article on the best WordPress membership plugins to learn more.

Step 4. Send a Test Email

Now that your Microsoft API is set up and connected, it’s important to send a test email to make sure that everything is working properly.

To do this, make sure you’re on the Settings » WP Mail SMTP page and then click on the tab that says Email Test.

Open the Email Test tab in WP Mail SMTP wordpress outlook mailer

On this page, you can enter any email address that you have access to (the default will be the site’s admin email). Then, click on the Send Email button.

After sending the email, you’ll see a success message.

Notice showing the WP Mail SMTP test email sent successfully

If you check the inbox for the email address you entered, you should receive the test email that says:

confirmation of successful test email outlook smtp

Final Thoughts

That’s it! You’ve successfully set up your site to send WordPress emails with the Outlook mailer in WP Mail SMTP.

You may also want to take a peek at our post on how to add Google Analytics to WordPress.

If you enjoyed this post, make sure to follow us on Facebook and Twitter for more free WordPress tutorials.

Using WordPress and want to get WPForms for free?

Enter the URL to your WordPress website to install.

Comments

  1. Thanks for reading this article – I hope you found it helpful.

    I wanted to let you know about our new WordPress survey plugin that allows you to build interactive polls and surveys within minutes. You also get best-in-class reporting, so you can make data-driven decisions.

    You can get it 100% free when you purchase WPForms Pro plan.

    Get Started with WPForms Today and see why over 2 million websites choose WPForms as their preferred online form builder.

    Syed Balkhi
    CEO of WPForms

Add a Comment

We're glad you have chosen to leave a comment. Please keep in mind that all comments are moderated according to our privacy policy, and all links are nofollow. Do NOT use keywords in the name field. Let's have a personal and meaningful conversation.