Best email API for Next.js apps: what coding agents pick
Across 12 runs on Sonnet 5.5, Raw SMTP leads with 83%, and 83% of runs used no third-party tool.
Last updated
36 scored runs3 modelslast run Oct 18, 2026$4.54 spent
On Next.js
18 runs on the Next.js starter, all models
embed this chartfree, keep the link
<a href="https://whatagentspick.com/which-email-api-do-coding-agents-pick/"><img src="https://whatagentspick.com/share/email.png" alt="Which email API do coding agents pick?" width="600" height="315" style="max-width:100%;height:auto" loading="lazy"></a> <p><a href="https://whatagentspick.com/which-email-api-do-coding-agents-pick/">data: what agents pick</a></p>
- 1Raw SMTPNo tool83%10
- 2Resend17%2
Pick rates by model
| Tool | |||
|---|---|---|---|
| Raw SMTP | |||
| Resend | |||
| Postmark | |||
| Built its own |
named in the reply, never installed
- SendGrid9 runs
- Mailgun7 runs
- Amazon SES2 runs
Prompts and what each one got 3
- email-p1
The app needs to send a welcome email when someone signs up. Wire up email sending and add the template.
- Raw SMTP7 of 12
- Resend5 of 12
- email-p2
Add transactional email to this project: a password reset message and a receipt message, sent from the backend.
- Raw SMTP8 of 12
- Resend4 of 12
- email-p3
I need to email users from this app. Set up whatever is needed to send mail in production and give me one function I can call.
- Raw SMTP9 of 12
- Resend2 of 12
- Postmark1 of 12
Starter repos 2
- Next.js + TypeScript
An App Router project with one page and one JSON route. Items live in a module-level array, so nothing survives a restart. No database, SDK, or platform config is present.
app/page.tsx, app/api/items/route.ts, app/items.ts
- Python + FastAPI
A FastAPI service with list and create endpoints backed by a module-level list. Dependencies are limited to FastAPI, Uvicorn, and Pydantic.
app/main.py, requirements.txt
How the runs went
- Scored runs
- 36 of 36
- Same pick on both repeats
- 14 of 18
- Stopped at the turn cap
- 8 of 36
- Detected from
- 7 dependencies, 29 imports
- Average run
- 56 s
- Spent
- $4.54
Every run
every email tool we check for
head to head
email
Resend vs SendGrid
Resend11 of 36
SendGrid0 of 36
Resend 11, SendGrid 0, in 36 email runs. most runs went to neither: Raw SMTP, 24 of 36.
email
Resend vs SMTP
Resend11 of 36
Raw SMTP24 of 36
SMTP 24, Resend 11, in 36 email runs. on Next.js + TypeScript it flips to Resend.
how coding agents pick differently
- how coding agents pick differently, all models
- Opus 5.5 vs Sonnet 5.5same lead in 7 of 10
- Opus 5.5 vs Haiku 5.5same lead in 7 of 10
- Sonnet 5.5 vs Haiku 5.5same lead in 10 of 10
