Overview
Understand the email integration in the boilerplate.
AI Boilerplate uses Resend for sending emails and React Email for building templates.
Features
| Feature | Description |
|---|---|
| Transactional emails | Magic link, email verification, and more. |
| React templates | Build email templates with React and Tailwind CSS. |
| Live preview | Preview templates in the browser during development. |
| Custom domain | Send from your own domain in production. |
How It Works
- Templates are defined as React components in
packages/email/src/templates/. - Shared layout components (Header, Footer) are defined in
packages/email/src/templates/_components/. - The
sendEmailfunction from@package/emailsends emails through Resend. - In development, preview templates at
http://localhost:3333.
Next Steps
- Configure the email provider