> For the complete documentation index, see [llms.txt](https://docs.yaycommerce.com/yaysmtp/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.yaycommerce.com/yaysmtp/how-to-set-up-smtps/how-to-connect-outlook-microsoft.md).

# 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**".

![](/files/r1VAccNt6WgaxEogitk2)

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

![](/files/sTjoITOgHyRrmYW7CjVa)

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

<figure><img src="/files/vqXSbcGnZ5muwthh2YLZ" alt=""><figcaption></figcaption></figure>

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

![](/files/iDXV0dFt2Athg1tOM9Us)

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.

![](/files/ERhsVcrGQU6AskUC3tNV)

**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="/files/01BHAsiTMee4XFMO1uPJ" 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.

![](/files/nWBu7wIeJ8hejSqAb2kB)

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

![](/files/gKqKWptGlMxScloOhHvZ)

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.

![](/files/pBSy7qRZJVOaczm0uL3t)

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.

![](/files/saVx4kmNeSFeEnU6T0eo)

#### 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**.

![](/files/UGnNGeDOghfdzCZaHM3e)

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

![](/files/OZfSpJZC4UWA3gK77yKw)

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

![](/files/DJefit6mvoW88N5b7M3m)

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

![](/files/ktVL6nzQ4OW2F0qDrMYX)

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

![](/files/owaOt9tIcZrVesJQnz3a)

#### 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="/files/Br9Srnga8d2fD0iW3Feq" 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.

![](/files/-MaD67oIyBpV0AE6xNd8)

<figure><img src="/files/goM2W1xbT2KxOfhJ8n1Q" alt=""><figcaption></figcaption></figure>

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

Happy Sending!
