Email Config
Configure Resend sender name, from address, reply-to, signature, and the dev-mode redirect that keeps test emails out of real customer inboxes.
File: config/email.config.ts
Controls the From address, Reply-To address, and the signature used in every email the site sends (welcome, submission confirmation, admin approvals, newsletter, …).
The only supported provider today is Resend.
Quick setup
1. Create a Resend account
resend.com → sign up (free tier: 3,000 emails/month, 100/day).
2. Create an API key
Resend Dashboard → API Keys → Create API Key → full access. Copy the key (starts with re_).
Paste into .env.local:
RESEND_API_KEY=re_...3. Verify your domain (required for production)
Without domain verification, all emails go from onboarding@resend.dev and look suspicious.
Resend → Domains → Add Domain → enter e.g. mydirectory.com. Resend shows you DNS records (TXT, MX, DKIM). Add them in your DNS provider (Cloudflare, Namecheap, etc.).
Once all DNS records show green check marks, you can send from anyname@mydirectory.com.
The config file
Let an AI assistant fill in the sender details, or edit the fields by hand using the reference below.
export const emailConfig: EmailConfig = {
provider: 'resend',
from: {
name: siteConfig.name, // pulled from site.config.ts
email: process.env.RESEND_PRODUCTION_FROM || `hello@${yourdomain}`,
},
replyTo: siteConfig.contact.email,
teamSignature: `The ${siteConfig.name} Team`,
};| Field | What it does |
|---|---|
provider | Always 'resend' for now. |
from.name | Display name in the recipient's inbox. |
from.email | Email address emails come from. |
replyTo | Where user replies land. |
teamSignature | The sign-off at the bottom of emails. |
Environment variables (all optional overrides)
| Variable | What it overrides |
|---|---|
RESEND_PRODUCTION_FROM | The production "From" address. |
RESEND_DEV_FROM | The dev-mode "From" address (default: onboarding@resend.dev). |
RESEND_FROM_EMAIL | Master override — wins over both above. |
RESEND_DEV_REDIRECT | true (default) redirects all dev emails to one address for safety. |
RESEND_DEV_REDIRECT_TO | Email address dev messages get redirected to. |
Why dev redirection matters
In development you often test flows that send emails. Without redirection, you risk emailing real users with test content. Keep RESEND_DEV_REDIRECT=true and point RESEND_DEV_REDIRECT_TO at your own inbox.
RESEND_DEV_REDIRECT=true
RESEND_DEV_REDIRECT_TO=you@example.comSee also
- Email & Notifications — the list of email types the app sends and when
- Resend docs — provider-side details