# Microsoft Outlook

#### **I get this issue when I try setting up YaySMTP with my Outlook Microsoft mailer.**

```
Mailer: Outlook Microsoft
[404]: The mailbox is either inactive, soft-deleted, or is hosted on-premise.
```

This issue was caused by using an Azure AD user with no valid M365 license assigned. You are getting this error because no Exchange Online mailbox is available to use for the Azure ad user who does not have a valid M365 license. This will only be available/created for users with a valid M365 license.

#### **I connect with the Microsoft Outlook SMTP server to YaySMTP and noticed this error message as below:**

```
Your Client ID or Client Secret are not correct.
```

![](https://docs.yaycommerce.com/yaysmtp/~gitbook/image?url=https%3A%2F%2F2430774507-files.gitbook.io%2F%7E%2Ffiles%2Fv0%2Fb%2Fgitbook-x-prod.appspot.com%2Fo%2Fspaces%252F-MMvULxRbZfmag_jD1k_%252Fuploads%252Fx49T4So7pEGTFEHkT8Ak%252FSafari_2023-05-17%252011-56-24%25402x.jpeg%3Falt%3Dmedia%26token%3D4488e897-acaa-4321-8574-4cfef449a87e\&width=768\&dpr=3\&quality=100\&sign=5c4a735\&sv=2)

You should double-check whether you copied and pasted the API key and Client ID correctly. Copy the **Application (client) ID** (as in the image below) and paste it into **the Client ID** field of YaySMTP settings on your website carefully.

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

After creating a client secret, you will see a **Client secrets** item. Copy its **value** and paste it into the **API Key** field.

<figure><img src="/files/5cf1pubZzeGgvWdUER3E" alt=""><figcaption></figcaption></figure>


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://docs.yaycommerce.com/yaysmtp/troubleshooting/microsoft-outlook.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
