# 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="/files/iX3G4Xywagg27HnCesgb" 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="/files/aqSMVaJbT9KfnQk8prvH" 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="/files/vMHQa3J1YxcMDWb2UxZg" alt=""><figcaption></figcaption></figure>

<figure><img src="/files/9re6eFVDHSWp1bfSNRaO" 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)


---

# 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.samita.io/samita-wholesale-b2b/registration-form/set-up-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.
