How to Send Transactional Email With Resend in Node.js
Resend is an email API built for developers, with official SDKs for Node.js, Python, PHP, Ruby, and Go. The free tier covers 3,000 emails per month and 100 per day, which fits most side projects and early-stage SaaS apps.
Your first email will fail if you skip domain verification. That’s the step that eats an afternoon.
What does Resend do that SMTP doesn’t?
Nothing magical — it wraps SMTP in a nicer API and handles deliverability infrastructure. Three practical differences:
- You get an API with logs. Every send shows delivery status, opens, clicks, and bounce reason. Plain SMTP gives you silence and maybe a server log line.
- DNS is managed for you. SPF, DKIM, and DMARC records are generated per domain in the dashboard.
- Test addresses. The
delivered@resend.devandbounced@resend.devaddresses let you simulate outcomes without spamming anyone.
What it doesn’t do: it’s not a marketing platform. No drip campaigns, no contact lists, no visual editor. If you need those, add a tool on top.
How do I verify a domain in Resend?
- Create the account and add your domain. Dashboard, Domains, Add Domain. Use the root domain (
example.com) or a subdomain likemail.example.com. - Copy the DNS records. Resend gives you an MX record for bounces, a TXT record for SPF, and a TXT record for DKIM. Copy all of them — skipping the MX record means bounces go nowhere and your reputation suffers silently.
- Add them at your DNS provider. Cloudflare, Route53, Namecheap — all work. On Cloudflare, set the TXT records to DNS-only, not proxied.
- Wait for propagation. Usually 5 to 30 minutes, occasionally hours. Click Verify in Resend.
- Set up DMARC. Resend recommends it. A basic record:
v=DMARC1; p=none; rua=mailto:dmarc@example.com. Start withp=nonewhile you monitor, then move toquarantine. - Send a test email. From the dashboard or the API. Check it lands in the inbox, not spam.
For local development, onboarding@resend.dev works as a from-address without domain verification — but only to your own account email. Anything else gets rejected.
How do I send an email with the Node SDK?
Install with npm i resend, then initialize with your API key from the dashboard. The send call takes a from address on your verified domain, a to address, a subject, and either html or react for the body.
Two patterns worth using: React Email for templating — you write components instead of string-concatenated HTML, and Resend’s SDK accepts the rendered output directly. And idempotency keys — pass the same key twice and Resend won’t send a duplicate, which saves you from retry loops creating double receipts.
Handle errors explicitly. The SDK throws on non-2xx responses, and a 429 means you hit the rate limit (2 requests per second on the free tier). Wrap sends in a queue if you’re batching.
What does Resend cost?
The free tier is genuinely usable, not a trial:
| Plan | Price | Emails/mo | Daily cap | Domains |
|---|---|---|---|---|
| Free | $0 | 3,000 | 100 | 1 |
| Pro | $20/mo | 50,000 | None | 10 |
| Scale | $90/mo | 100,000 | None | 1,000 |
Watch the daily cap. A free-tier app that sends password resets spiking to 150 in a day hits the wall at 100, and the remaining 50 fail. That’s a support ticket, not a billing upgrade.
Why do my emails land in spam?
Three usual causes. Missing DMARC — Gmail and Yahoo have required it for bulk senders since 2024. Sending from a free Gmail address as the from-address — Resend rejects this, and rightly so; spoofed consumer domains tank your reputation. Sudden volume spikes — a new domain sending 5,000 emails on day one gets throttled. Warm up gradually.
Also check that your reply-to isn’t set to noreply@. Replies to a black hole hurt engagement signals, and engagement signals affect inbox placement.
Resend vs SendGrid vs Postmark
SendGrid’s free tier is 100 emails a day permanently, similar to Resend’s. Postmark is more expensive ($15/mo for 10,000) but has the best transactional deliverability reputation in the industry — for password resets that must arrive, that’s worth the premium.
Resend’s differentiator is developer experience: React Email, clean docs, and TypeScript types that actually work. If you’re building a new Node app in 2026, it’s the path of least friction. If your email is revenue-critical and volumes are high, Postmark’s track record still wins.
Who should use it
Good fit: indie developers, small SaaS apps, anyone sending receipts, password resets, and notifications. Not a fit: marketing teams needing campaign tooling, or high-volume senders above 100,000 a month where dedicated IP pricing matters.
Key Takeaways
- Resend’s free tier allows 3,000 emails per month with a 100 per day cap.
- Domain verification requires SPF, DKIM, and MX records — missing MX breaks bounce handling.
- Pro is $20 per month for 50,000 emails and no daily cap.
- Gmail and Yahoo require DMARC for bulk senders; set it up from day one.
onboarding@resend.devonly sends to your own account email.- React Email integration removes most template HTML wrangling.
SDKs and full pricing are listed on the Resend tool page.
