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

# Email

LaunchIt uses [Resend](https://resend.com) with [React Email](https://react.email/) for components. It makes it very easy to design and send emails that will be displayed correctly in most email clients.

## Setup

```bash web/.env theme={null}
RESEND_API_KEY=""
EMAIL_API_TOKEN=""
```

1. Sign up for [Resend](https://resend.com) and get your API key
2. Generate your Email API Security Token by running:

```bash theme={null}
openssl rand -base64 32
```

3. After that, go to Domains -> Add Domain, set your DNS records and verify your domain.

<Tip>
  It is highly recommended to set up **\_dmarc** for your domain to avoid emails going to spam.
</Tip>

## Usage

LaunchIt uses `packages/mail` for sending emails. You can find the templates in `packages/mail/emails`.

To test your emails, you can use the following command:

```bash theme={null}
cd packages/mail
pnpm dev
```

<Info>
  Images from mails sent from localhost probably won't be shown as local urls are blocked by some email clients like Gmail.
</Info>
