# Set up SMTP

{% hint style="info" %}
**Note**

* This is an optional setting. If you set up SMTP, the email notification will be sent and receive via your own email address.
* If you do not configure this option, email notifications will be sent from our email server by default
  {% endhint %}

Please view steps to set up Google SMTP below.&#x20;

## **Steps to manage**&#x20;

### Steps 1: Log into your Google account&#x20;

Click [here ](https://myaccount.google.com/)> log into your Gmail account&#x20;

### Step 2: Generate App Password if 2-Step Verification is Enabled

1. Please make sure 2-Step Verification is enabled in your Google accoun&#x74;**.** [**Learn more**](https://support.google.com/accounts/answer/185839?hl=en\&co=GENIE.Platform%3DAndroid)
2. Then click [here](https://accounts.google.com/signin/v2/challenge/pwd?continue=https%3A%2F%2Fmyaccount.google.com%2Fapppasswords\&service=accountsettings\&osid=1\&rart=ANgoxcdLMmet3NvgjbdpzsMq0KoXNJyxtAoCLMbvDQUlJfgOx1aurad5UovfOx_VzIQCC3ngjDNa4NrhIcMzG1vVgoTmlSvedg\&TL=AC7eWV1D1q-bjvM25M6waxUjQCCabFxl0K9Bn0bW5AWXuTc3O0zPCDZxtbw2g3d0\&flowName=GlifWebSignIn\&cid=1) to generate **App password**
3. Select **Other/Custom name** from **Select App**, give it a name such as “DO – Production Server” and then click **Generate**.
4. Note down the application password as it will be required in the next step.

<figure><img src="https://810149679-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F7AXvWN0Sv4Sg8s2aVRWp%2Fuploads%2FVXndhboLSVKRXh9lIXDq%2Fimage.png?alt=media&#x26;token=dce818b9-a3b9-4f28-9dcd-c8cd9ab6510a" alt=""><figcaption></figcaption></figure>

### Step 3: Set up SMTP configuration in the app&#x20;

1. From the app admin page, click **Settings > Notifications > Mail SMTP & API**
2. Toggle on the Mail SMTP & API slider:&#x20;

<figure><img src="https://810149679-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F7AXvWN0Sv4Sg8s2aVRWp%2Fuploads%2FJ8wIZyfkyijMvnzKtClp%2Fimage.png?alt=media&#x26;token=21ca53ca-bb46-4157-9d24-81bde0908cb1" alt=""><figcaption></figcaption></figure>

3. Enter the SMTP information as below

(1) **SMTP** (host): enter **smtp.gmail.com** as your host if you use Google account,

(2) **Port:** Use port **465**

(3) **Mail Encryption**: **SSL**&#x20;

(4) **User name/Email address:** enter your Gmail login username **<your.username@gmail.com>**

(5) Enter your **App password** (generated in step 2 above)

4. Click **Save.**&#x20;

* The app also supports setting up SMTP email for **other providers like Outlook, Amazon SES,...**

Click on the **Provider** section and select 1 option in the dropdown list:

<figure><img src="https://810149679-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F7AXvWN0Sv4Sg8s2aVRWp%2Fuploads%2FShHn2v4DqRsJRFm966kC%2Fimage.png?alt=media&#x26;token=3eee4b52-105d-4efe-bea2-55d9c4ee6836" alt=""><figcaption></figcaption></figure>

<figure><img src="https://810149679-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F7AXvWN0Sv4Sg8s2aVRWp%2Fuploads%2FDy6hzjoM7NeFL2Y7jJsf%2Fimage.png?alt=media&#x26;token=8b2a47e4-4060-4adb-8e39-5cf9e5691b21" alt=""><figcaption></figcaption></figure>

{% hint style="warning" %}
**Note**

* App password in step 5 is the app password generated in Step #2 above. It’s NOT your Gmail account password.
* Remember to Save the configuration before sending test email
* If you are using another email service provider (not Gmail), please set up based on your own accocunt.
  {% endhint %}

> ### **Need support?**
>
> If you do encounter any difficulty while proceeding these steps, don’t show any hesitation to contact us promptly via the email address [support@samita.io](https://help.samita.io/support@samita.io)
