> ## Documentation Index
> Fetch the complete documentation index at: https://sourcebot-jminnetian-askskills.mintlify.site/llms.txt
> Use this file to discover all available pages before exploring further.

# Transactional Email

To enable transactional emails in your deployment, set the following environment variables. We recommend using [Resend](https://resend.com/), but you can use any provider. Setting this enables you to:

* Send emails when new members are invited
* Send emails when organization join requests are created/accepted
* Log into the Sourcebot deployment using [email codes](/docs/configuration/auth/providers#email-codes)

| Variable              | Description                                                     |
| :-------------------- | :-------------------------------------------------------------- |
| `SMTP_CONNECTION_URL` | SMTP server connection (`smtp://[user[:password]@]host[:port]`) |
| `EMAIL_FROM_ADDRESS`  | The sender's email address                                      |

You can also provide the SMTP connection details as individual environment variables instead of a full URL.

| Variable             | Description                          |
| :------------------- | :----------------------------------- |
| `SMTP_HOST`          | The hostname of the SMTP server      |
| `SMTP_PORT`          | The port of the SMTP server          |
| `SMTP_USERNAME`      | The username for SMTP authentication |
| `SMTP_PASSWORD`      | The password for SMTP authentication |
| `EMAIL_FROM_ADDRESS` | The sender's email address           |

If `SMTP_CONNECTION_URL` is set, it takes precedence over the individual variables.
