> For the complete documentation index, see [llms.txt](https://docs.samita.io/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.samita.io/samita-wholesale-b2b/registration-form/set-up-smtp.md).

# Set up SMTP

{% hint style="info" %}
This is optional. If you set up SMTP, notification emails are sent and received through your own email address. If you skip this, notifications are sent from our default mail server instead.
{% endhint %}

Here's how to set up SMTP using a Google account.

## Steps to manage

{% stepper %}
{% step %}

### Log in to your Google account

[Log in to your Gmail account](https://myaccount.google.com/).
{% endstep %}

{% step %}

### Generate an app password

1. Make sure **2-Step Verification** is enabled on your Google account. [Learn more](https://support.google.com/accounts/answer/185839?hl=en\&co=GENIE.Platform%3DAndroid).
2. Go to [Google App passwords](https://myaccount.google.com/apppasswords) to generate one.
3. Select **Other/Custom name** under **Select App**, give it a name (e.g. "DO – Production Server"), then click **Generate**.
4. Note down the generated password — you'll need it in the next step.

<figure><img src="/files/gmsf1uVstUSMIYEdsEki" alt=""><figcaption></figcaption></figure>
{% endstep %}

{% step %}

### Configure SMTP in the app

1. From the app, click **Settings > Notifications > Mail SMTP & API**.
2. Toggle on **Mail SMTP & API**.

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

3. Enter your SMTP details:
   * **SMTP (host):** `smtp.gmail.com` if you're using a Google account
   * **Port:** `465`
   * **Mail Encryption:** `SSL`
   * **Username/Email address:** your Gmail login, e.g. `your.username@gmail.com`
   * **Password:** the app password you generated in the previous step
4. Click **Save**.
   {% endstep %}
   {% endstepper %}

## Using another provider

The app also supports SMTP with other providers, like Outlook or Amazon SES. Click the **Provider** dropdown and select one:

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

<figure><img src="/files/4zHiujEDVulezfwCc0aN" alt=""><figcaption></figcaption></figure>

{% hint style="warning" %}

* The password field is the app password generated in the Google steps above — it's **not** your regular Gmail account password.
* Click **Save** before sending a test email.
* If you're using a provider other than Gmail, follow that provider's own SMTP setup instructions for the host, port, and encryption values.
  {% 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
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## 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, and the optional `goal` query parameter:

```
GET https://docs.samita.io/samita-wholesale-b2b/registration-form/set-up-smtp.md?ask=<question>&goal=<endgoal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is optional and describes the broader end goal you are ultimately trying to accomplish on behalf of the user. GitBook uses it to tailor the answer towards what is most useful for that goal.

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.
