- Admin portal invitations
- Customer organization invitations
- Set-password and password-reset emails
Configure Resend
Create a Resend account, generate an API key, and add it to your.env file.
RESEND_API_KEY is missing, the email operation fails with a configuration
error.
Configure the sender
SetEMAIL_FROM to the address that recipients should see in the From field.
onboarding@resend.dev. That address is useful for initial testing but is not a
production sender.
Test with a new Resend account
While you use the defaultresend.dev sender, Resend only allows test emails to
the email address associated with your Resend account. Attempts to send to other
recipients return an error.
This is enough to verify your local email integration before configuring DNS.
Sign in to the application with your own email address and exercise an
invitation or password flow.
Send to other recipients
To send email to customers or teammates, add a domain you own to Resend and verify it by adding the DNS records provided in the Resend dashboard. Once the domain is verified:- Change
EMAIL_FROMto an address on the verified domain. - Restart the application so it reads the updated environment value.
- Send a test invitation to an address other than your own.
The domain in
EMAIL_FROM must match the domain or subdomain you verified in
Resend.Email implementation
Email code lives undersrc/lib/email/. Each email type owns its subject,
content, required inputs, and Resend call. All email functions share the client
and sender configuration from src/lib/email/client.ts.