> ## Documentation Index
> Fetch the complete documentation index at: https://docs.formbase.dev/llms.txt
> Use this file to discover all available pages before exploring further.

# Email Setup (SMTP/Resend)

> Configure email delivery for self-hosted Formbase.

Formbase sends emails for account verification, password resets, and optional submission notifications. You must configure an email transport in self-hosted environments.

Choose one of the supported transports below.

<Steps>
  <Step title="SMTP configuration">
    ```ini theme={null}
    SMTP_TRANSPORT=smtp
    SMTP_HOST=smtp.mailgun.org
    SMTP_PORT=587
    SMTP_USER=postmaster@example.com
    SMTP_PASS=your-password
    ```

    `SMTP_USER` and `SMTP_PASS` must either both be set or both be empty.
  </Step>

  <Step title="Resend configuration">
    ```ini theme={null}
    SMTP_TRANSPORT=resend
    RESEND_API_KEY=re_xxx
    ```

    Resend uses API key authentication and requires no SMTP host.
  </Step>
</Steps>

<Callout type="tip">
  Use a dedicated sending domain for better deliverability and easier monitoring.
</Callout>
