LaunchIt uses Resend with React Email for components. It makes it very easy to design and send emails that will be displayed correctly in most email clients.

Setup

web/.env
RESEND_API_KEY=""
EMAIL_API_TOKEN=""
  1. Sign up for Resend and get your API key
  2. Generate your Email API Security Token by running:
openssl rand -base64 32
  1. After that, go to Domains -> Add Domain, set your DNS records and verify your domain.

It is highly recommended to set up _dmarc for your domain to avoid emails going to spam.

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:

cd packages/mail
pnpm dev

Images from mails sent from localhost probably won’t be shown as local urls are blocked by some email clients like Gmail.