Resend for transactional email. Also powers magic link authentication.
RESEND_API_KEY=re_...
RESEND_AUDIENCE_ID=... # optional, for audience/list management
What It Does
- Transactional email (welcome, receipts, notifications)
- Magic link sign-in (when
AUTH_RESEND_ENABLED— dev only by default) - Audience management for marketing lists
Magic Link Auth
Set RESEND_API_KEY and the auth system picks it up automatically. Note: Resend-based auth is development-only by default to prevent accidental email abuse in production. See Authentication for details.
Domain Setup
- Add your domain in Resend Dashboard → Domains
- Add the DNS records (DKIM + SPF)
- Verify ownership
Without a verified domain, emails send from Resend's shared domain (fine for dev).
Key Files
| File | Purpose |
|---|---|
src/server/services/resend-service.ts | Email sending logic |
src/server/actions/resend-actions.ts | Server actions for email |
src/config/features-config.ts | AUTH_RESEND_ENABLED flag |