Documentation

Guides and references

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

  1. Go to DomainsAdd Domain
  2. Add the DNS records (SPF, DKIM) provided by Resend to your domain
  3. Wait for verification (usually a few minutes)

For local development, you can use Resend's sandbox domain or your verified domain.

Note

See Managing Domains in Resend's docs for SPF, DKIM, and verification details.

Resend Domains → Add Domain — DNS records (SPF, DKIM)

3. Get API Key

  1. Go to API KeysCreate API Key
  2. Name it (e.g. "NextBento Production")
  3. Copy the key (starts with re_)
Note

See API Keys in Resend's docs for permissions and best practices.

Resend API Keys → Create API Key

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 notifications
  • billing-payment-success.tsx — Payment confirmation
  • billing-payment-failed.tsx — Failed payment alert
  • team-invitation.tsx — Team invite emails
  • feedback-submission.tsx — Feedback form confirmation
  • feedback-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.