Email System
Transactional emails via Resend for the ACG portal.
Overview
The portal uses Resend for transactional email. Core helpers live in lib/email.ts.
Email types
| Trigger | |
|---|---|
| Verification | User registration |
| Password reset | Forgot password |
| Purchase confirmation | Creem webhook after Pro checkout |
| Contact form | /api/contact submissions |
Configuration
RESEND_API_KEY="re_your_api_key"
RESEND_FROM_EMAIL="AI Cost Gate <noreply@yourdomain.com>"Development
Without a verified domain, Resend may send from onboarding@resend.dev.
Production
Verify your domain in Resend and set RESEND_FROM_EMAIL to that domain.