# How to Connect Microsoft Outlook

To connect with the Microsoft Outlook SMTP server, you can use either a Microsoft personal account (Outlook, Hotmail or Live email account) or Microsoft 365 business account.&#x20;

In this tutorial, you'll accomplish this integration by following just these 4 basic steps:

1. Create a Web App in your Microsoft account
2. Create Client secrets
3. Add API permissions
4. Authorize Microsoft Outlook SMTP

Let's get started!

#### 1. Create a Web App in your Microsoft account

First, you visit [Home - Microsoft Azure](https://portal.azure.com/#home) page, then you click "**More services**".

![](https://2430774507-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-MMvULxRbZfmag_jD1k_%2Fuploads%2FKNDNf1FdNXgcxrZfqwQf%2Fms-doc-1.png?alt=media\&token=719fca7b-0001-4415-be3a-787c4fdc6550)

On the next screen, you click into "**Identity**" and then choose "**Microsoft Entra ID**".

![](https://2430774507-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-MMvULxRbZfmag_jD1k_%2Fuploads%2FNPMQpuZrSFzKgwUYtHDn%2Fms-doc-17.png?alt=media\&token=c94c7387-2666-492c-9e76-2d8622aa79ca)

On the next screen, you click into "**App registrations**".

<figure><img src="https://2430774507-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-MMvULxRbZfmag_jD1k_%2Fuploads%2F8NYQJPGJvqBVx2UJjiZ1%2Fms-doc-18.png?alt=media&#x26;token=c55d4e69-26bb-476f-ba5e-966e83df3b08" alt=""><figcaption></figcaption></figure>

On the next screen, you click into "**New registration**".

![](https://2430774507-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-MMvULxRbZfmag_jD1k_%2Fuploads%2FNEBwgaPfRRIq7xTLkulp%2Fms-doc-19.png?alt=media\&token=22bc3d49-40f7-408d-833f-1f375b5e5aa2)

Then, you will see **Register an application** page, You need to fill all the necessary information as in the image below, then click **Register** button to create a new application.

![](https://2430774507-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-MMvULxRbZfmag_jD1k_%2Fuploads%2FSbUGoTUp16ek8jteMwKi%2Fms-doc-4.png?alt=media\&token=88098120-0157-4ff2-bafe-dc9fe03bc764)

**Note**: With "Redirect URI" field, you go back to the YaySMTP settings screen in your website and make sure you press **Enter** to add it too (as image below).

<figure><img src="https://2430774507-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-MMvULxRbZfmag_jD1k_%2Fuploads%2FCfzYcEamgXubct1m6cOl%2Fimage.png?alt=media&#x26;token=1d584f83-c925-4f34-9326-b3b462946bf6" alt=""><figcaption></figcaption></figure>

#### 2. Create Client secrets

Then, you see Application page, copy Application (client) ID (as image below) and paste into **Client ID** field of YaySMTP settings on your website.

![](https://2430774507-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-MMvULxRbZfmag_jD1k_%2Fuploads%2FTMf4BLKDntSQKNevfH7r%2Fms-doc-5.png?alt=media\&token=de7dad74-9608-497f-98d2-907bac392281)

On the service panel left sidebar, find **Certificates & secrets**, then click into **New client secret** to create Secret ID (as image below).

![](https://2430774507-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-MMvULxRbZfmag_jD1k_%2Fuploads%2Fma9yA6lNKMcvrXwQ7b03%2Fms-doc-14.png?alt=media\&token=39df9096-ac9b-4491-92cb-9f9484efd513)

After click into "**New client secret**" button, you will see an "**Add a client secret**" popup, enter "**Description"** field and choose "**Expires"** field, then you click "**Add"** button to complete.

![](https://2430774507-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-MMvULxRbZfmag_jD1k_%2Fuploads%2Fpxh3GN4Nb6f0ke5QvSDQ%2Fms-doc-6.png?alt=media\&token=485e55fd-5b9a-4c27-afdd-b46bfda844fb)

After creating a client secret, you will see a **Client secrets** item. Copy its value and paste into **Client Secret** field of YaySMTP on your website.

![](https://2430774507-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-MMvULxRbZfmag_jD1k_%2Fuploads%2FsXFD85NqrzWDqqHoKtPd%2Fms-doc-7.png?alt=media\&token=fc7479e4-8a44-42c4-9949-f390ec577292)

#### 3. Add API permissions

In this step, choose **API permissions**, then click into **Add a permission,** then it will show **Select an API** popup(as image below), you choose **Microsoft Graph**.

![](https://2430774507-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-MMvULxRbZfmag_jD1k_%2Fuploads%2FbWObFFPfrmpFFQAfj1yK%2Fms-doc-8.png?alt=media\&token=4731e1c3-dfd7-4dd3-b2c3-b550574ace2c)

\
Then, choose **Delegated permissions** option.

![](https://2430774507-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-MMvULxRbZfmag_jD1k_%2Fuploads%2FWONzPUtuC0ge7oB8a7cd%2Fms-doc-9.png?alt=media\&token=952d295a-f68d-4526-90c2-e45f5ea77bc5)

Then, type "mail" text to search **Mail** permission and choose "**Mail.Read.Shared**" option (as image below), then click "**Add permissions"** button.

![](https://2430774507-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-MMvULxRbZfmag_jD1k_%2Fuploads%2FC6bSf21hPXOUsu7hNWDS%2Fms-doc-10.png?alt=media\&token=d3d08e60-d15f-4dc3-8a83-b18558c200ed)

Next, you’ll need to go through this permissions process once more and choose **Application permissions** option.

![](https://2430774507-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-MMvULxRbZfmag_jD1k_%2Fuploads%2Fsjl7FyX5HGsz2le3fXGu%2Fms-doc-11.png?alt=media\&token=176243fb-4aed-4ef7-bc85-265b1471b466)

\
Next, you choose "**Mail.Send**" option (as image below), then click "**Add permissions"** button.

![](https://2430774507-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-MMvULxRbZfmag_jD1k_%2Fuploads%2FPeRNLUNNGT66ID2VvQyG%2Fms-doc-15.png?alt=media\&token=8065281e-b96f-4e34-b5b5-6200f6321b08)

#### 4. Authorize Microsoft Outlook SMTP

In this step, all you need to do is to re-confirm all the input fields.

Add them to the appropriate settings fields of YaySMTP, click **"Save Changes".**\
Then click on "**Confirm Authorization**" button to authorize the Microsoft app.

<figure><img src="https://2430774507-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-MMvULxRbZfmag_jD1k_%2Fuploads%2F4GvRCendO4j2TwegsBO6%2Fimage.png?alt=media&#x26;token=899233aa-4f09-48bf-825f-f4aa3d296495" alt=""><figcaption></figcaption></figure>

Here you choose the email account that you've just used to create the app. Keep clicking on **"Allow"** button until the authorization process is completed.

![](https://2430774507-files.gitbook.io/~/files/v0/b/gitbook-legacy-files/o/assets%2F-MMvULxRbZfmag_jD1k_%2F-MaD2mT7M36eVlE-qcwe%2F-MaD67oIyBpV0AE6xNd8%2FScreen%20Shot%202021-05-21%20at%2015.41.38.png?alt=media\&token=e16f788c-cfe9-4959-9842-148c43f4291f)

<figure><img src="https://2430774507-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-MMvULxRbZfmag_jD1k_%2Fuploads%2Fa4WTgOxqUYAtCGT9PH4i%2Fimage.png?alt=media&#x26;token=a4ef0480-7cf6-4e7d-8222-be35bcdcb2ab" alt=""><figcaption></figcaption></figure>

Now you have successfully integrate Microsoft Outlook SMTP server into your WordPress site!&#x20;

Happy Sending!
