# Next.js boilerplate with Resend

> Transactional email through Resend, behind one provider-agnostic send function. React Email templates cover sign-in links, password resets, email checks, welcome and receipts. Every transactional send carries an idempotency key. A bounce webhook stops you mailing an address that no longer exists.

Transactional email with React Email templates you review in a pull request.

- **Category:** Email
- **Pricing:** Free: 3,000 emails a month (100 a day) on up to 3 domains. Pro is $20/month for 50,000 emails and 10 domains. Every self-serve plan keeps 30 days of data. Dedicated IPs are a $30/month add-on on Scale.
- **Best for:** Product teams sending transactional mail: magic links, receipts, notifications. Templates are React components, reviewed in a pull request, not pasted into a vendor's WYSIWYG editor.
- **Conflicts with:** mailgun
- **Vendor docs:** https://resend.com/docs/introduction

## Trade-offs

- Transactional first. There is a broadcast product, but if you need segmentation, drip campaigns and a marketing CRM, this is not that tool.
- Shared IPs by default. Dedicated IPs are a paid add-on on the Scale plan, so on the shared pool your own sending hygiene matters more.
- Data is kept 30 days. If you need to prove what you sent someone six months ago, log the message id at send time. The repo does.
- React Email is the headline feature and a real one: templates are components, previewable locally, diffable in review. It also means your email templates are part of your build.
- Fewer knobs than a full ESP: no server-side template variables, no A/B testing, limited routing rules. For transactional mail that is a simpler model, not a gap.

## Known fixes it ships

- [Sending a lot of email without hitting the rate limit or the spam folder](https://agenticboilerplate.com/cookbook/resend/batching-and-rate-limits): Resend allows a couple of requests a second by default. Use the batch endpoint, add backoff for 429s, keep one idempotency key per recipient, and never batch a magic link.
- [Bounces and spam complaints: listen, or lose the inbox for everyone](https://agenticboilerplate.com/cookbook/resend/bounces-complaints-and-webhooks): A hard bounce means the mailbox is gone. Keep sending and mailbox providers downgrade every message from your domain. Wire the webhook, suppress permanently, and never suppress on a soft bounce.
- [SPF, DKIM and DMARC: what each record does and why your mail needs all three](https://agenticboilerplate.com/cookbook/resend/domain-verification-spf-dkim-dmarc): Three DNS records decide whether a mailbox provider treats your email as authentic. Here is what each one proves, how to set them up on a subdomain, and how to read a failure.
- [Magic links that actually arrive, and survive the scanner that clicks them first](https://agenticboilerplate.com/cookbook/resend/magic-link-deliverability): A sign-in link is the highest-stakes email you send. It has to land in seconds, work once, and survive corporate mail scanners that follow every URL before the human does.
- [Previewing React Email templates locally, and what the preview cannot tell you](https://agenticboilerplate.com/cookbook/resend/previewing-templates-locally): React Email's preview server renders your templates with realistic props and hot reload. Here is how to set it up, what to check, and the four failure modes only a real client will show you.

## Generate it

[Build a repo with Resend](https://agenticboilerplate.com/build?b=resend)

---

Agentic Boilerplate: A Next.js repo your agent already knows. Free during launch, then $99 once.

- Site map for agents: https://agenticboilerplate.com/llms.txt
- Public API: https://agenticboilerplate.com/openapi.json
- Contact: agenticstudio@gmail.com
