Getting Started
Resend Domain Verification (DNS, SPF, DKIM)
Add a Resend domain, publish SPF and DKIM DNS records, then set RESEND_API_KEY for NextBento transactional email.
1. Create a Resend Account
Sign up at resend.com. Free tier includes 3,000 emails/month.
2. Verify Your Domain
- Go to Domains → Add Domain
- Add the DNS records (SPF, DKIM) provided by Resend to your domain
- Wait for verification (usually a few minutes)
For local development, you can use Resend's sandbox domain or your verified domain.
See Managing Domains in Resend's docs for SPF, DKIM, and verification details.
3. Get API Key
- Go to API Keys → Create API Key
- Name it (e.g. "NextBento Production")
- Copy the key (starts with
re_)
See API Keys in Resend's docs for permissions and best practices.
4. Environment Variable
Add to .env.local:
RESEND_API_KEY=re_xxx
5. Email Templates
NextBento includes React Email templates in components/emails/:
billing-subscription-updated.tsx— Subscription change notificationsbilling-payment-success.tsx— Payment confirmationbilling-payment-failed.tsx— Failed payment alertteam-invitation.tsx— Team invite emailsfeedback-submission.tsx— Feedback form confirmationfeedback-confirmation.tsx— Feedback thank-you
Templates are rendered via lib/email/service.ts and sent through Resend.
6. From Address
Update the from address in lib/email/service.ts to use your verified domain, e.g. noreply@yourdomain.com.
Next Steps
This is the NextBento Resend path, not a replacement for Resend’s own docs. After DNS verifies, wire the API key and send from your domain.
- Quick Start — get the boilerplate running
- Emails — Email service and templates
- Environment Variables — Full reference including
RESEND_API_KEY - Pricing · Compare boilerplates