> For the complete documentation index, see [llms.txt](https://sl-guide.storeify.app/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://sl-guide.storeify.app/smtp.md).

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

**Currently, most email services have upgraded their authentication methods, so use the latest authentication method if possible (commonly known as OAuth 2.0)**.

Currently, there are two options for setting up your email account to send emails.

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

<figure><img src="https://3193615300-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-MbGA3WnXKJXk8zrgkrt%2Fuploads%2FgkVJzzdeUnsWDvgzRRRN%2Fimage.png?alt=media&amp;token=98e86327-f803-4e72-bc75-92bc89870089" alt=""><figcaption></figcaption></figure>

{% hint style="info" %}
Some email services, such as Google, Yahoo, and iCloud, require the use of an app password to set up SMTP.
{% endhint %}

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

{% hint style="info" %}
*You must receive a success message when you click the Test connection button for the configuration to be considered successful*.

To ensure the connection is successful, you can also try sending a confirmation email to the email address specified in the "**Send test email to**" field.
{% endhint %}

### 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%2F67WVpm4s7UdzL6JUvkZE%2Fimage.png?alt=media&amp;token=b414f1a1-6fa6-46a3-aa97-4802f9a49bfb" 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>
