# SMTP

To set up the SMTP configuration, go to the **SMTP** menu on the left sidebar.

At this menu,  you can configure your own email server service. In some cases, when you use the application's email server, emails sent to you or your customers may end up in the spam box. To prevent this, you should use your own email server and see the provider's parameters to fill in this section.

### 1. Use SMTP authenticate <a href="#id-1.-use-smtp-authenticate" id="id-1.-use-smtp-authenticate"></a>

We will guide you to set up SMTP with Gmail (if you use another email service, the setup is similar, just the parameters, you can get these parameters from the email service provider or search on Google).

**Important:** To create an app password, you need 2-Step Verification on your Google Account.

If you use 2-Step-Verification and get a "password incorrect" error when you sign in, you can try to use an app password.

1. Go to your [Google Account](https://myaccount.google.com/).
2. Select **Security**
3. Under "Signing in to Google," select **2-Step Verification**.
4. At the bottom of the page, select **App passwords**.
5. Enter a name that helps you remember where you’ll use the app password.
6. Select **Generate**.
7. To enter the app password, follow the instructions on your screen. The app password is the 16-character code that generates on your device.
8. Select **Done**.

**Final**: Go to our contact form app admin -> SMTP and put your Gmail information

<figure><img src="https://3193615300-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-MbGA3WnXKJXk8zrgkrt%2Fuploads%2FkGdFXjoMQKK4uvldDvqr%2Fimage.png?alt=media&#x26;token=71dbd4ed-4a3d-4e76-8156-115d0c6d4168" alt=""><figcaption></figcaption></figure>

**Note**: *You must receive a success message when you click the Test connection button for the configuration to be considered successful*.

### 2. Use OAuth 2.0 (Applies only to Google OAuth and Microsoft Office365 OAuth) <a href="#id-2.-use-oauth-2.0-applies-only-to-google-oauth-and-microsoft-office365-oauth" id="id-2.-use-oauth-2.0-applies-only-to-google-oauth-and-microsoft-office365-oauth"></a>

<figure><img src="https://3193615300-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-MbGA3WnXKJXk8zrgkrt%2Fuploads%2FS1zoG1nxbBxassjTZhvu%2Fimage.png?alt=media&#x26;token=bd1837bd-4882-4171-9a5d-f745e2f603c3" alt=""><figcaption></figcaption></figure>

* If you use Gmail, you need to have the **Client ID** and **Client Secret** of the account. And here's a guide on how to create a Client ID and Client secret in Google Cloud Console: <https://sl-guide.storeify.app/google-map-api-key/how-to-get-client-id-and-client-secret-in-google-cloud-console>
* If you use Microsoft Office365 email, you need to have the **Client ID**, **Tenant ID** and **Client Secret**. And here's a guide on how to create the Client ID, Tenant ID and Client Secret in Microsoft Azure: <https://sl-guide.storeify.app/google-map-api-key/how-to-get-client-id-tenant-id-and-client-secret-in-microsoft-azure>


---

# 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://sl-guide.storeify.app/smtp.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.
