People compare Resend and Nodemailer because both appear when you search for how to send email from Node.js. The short answer: they do different jobs. Nodemailer is a free Node.js library that builds an email and passes it to an SMTP server. Resend is a hosted service that delivers the email. You can use them together, or use Resend’s API without Nodemailer, but Nodemailer on its own cannot get mail into an inbox.
What each one actually is
Nodemailer is an open-source npm package for Node.js. You create a transport (usually SMTP, with a host, port, username and password), then call sendMail with a from address, recipients, subject and body. Nodemailer formats the message correctly and speaks the SMTP protocol. It does not own mail servers, IP addresses or sending reputation. Whoever runs the SMTP server you point it at does the delivery.
Resend is an email sending service. It runs the infrastructure, signs your mail with DKIM once you verify your domain, tracks deliveries, bounces and complaints, and keeps 30 days of logs. You talk to it through its HTTP API, its SDKs, or its SMTP relay.
So the real question is usually one of these:
- Should I call an email API directly, or use Nodemailer over SMTP?
- Which provider should sit behind Nodemailer?
Pricing compared
Nodemailer costs nothing. The SMTP server behind it is where the cost is.
| Setup | Monthly cost for 50,000 emails |
|---|---|
| Resend API (no Nodemailer) | $20 (Pro) |
| Nodemailer + Resend SMTP relay | $20 (Pro) |
| Nodemailer + another SMTP provider | That provider’s price |
| Nodemailer + your own mail server | Server cost plus your time |
Worked example: a side project sending 2,000 emails a month
A side project sending 2,000 sign-up and reset emails a month fits inside Resend’s free plan of 3,000 a month (100 a day). Whether you call Resend’s API or send through its SMTP relay with Nodemailer, the cost is $0. The library choice does not change the bill.
Running your own mail server to avoid a provider is possible, but you then own IP reputation, SPF and DKIM, bounce handling and blocklist monitoring. For app email this is rarely worth it.
Features
Because Nodemailer is a library, the comparison is really “what you get from a service” against “what you get from a client”:
- Delivery and reputation: Resend provides it. Nodemailer relies on its SMTP server.
- Domain authentication: Resend gives you DNS records to add. With Nodemailer, SPF and DKIM come from whichever provider you use. See SPF, DKIM and DMARC setup.
- Logs and events: Resend keeps 30 days of logs and sends webhooks for deliveries, bounces and complaints. Nodemailer tells you only whether the SMTP server accepted the message.
- Inbound: Resend receives mail on all plans. Nodemailer sends only.
- Language: Nodemailer is Node.js only. Resend has SDKs or quickstarts for Node.js, PHP, Python, Ruby, Go, Rust, Elixir, Java and .NET.
Deliverability and account policies
Nodemailer has no account and no policy: it sends whatever you tell it to. Deliverability depends entirely on the server behind it. A raw VPS with a fresh IP and no authentication will usually land in spam.
Resend sends from shared IPs on most plans, with a dedicated IP as a $30 a month add-on on Scale. Its acceptable use policy limits usage that puts shared deliverability at risk, and support runs through dashboard tickets and email.
Developer experience
With Nodemailer you write a few lines of transport configuration and call sendMail. The provider is just settings, read here from environment variables:
import nodemailer from 'nodemailer';
const transport = nodemailer.createTransport({
host: process.env.SMTP_HOST,
port: 465,
secure: true, // TLS from the start; use port 587 with secure: false for STARTTLS
auth: { user: process.env.SMTP_USER, pass: process.env.SMTP_PASS },
});
await transport.sendMail({
from: 'Acme <hello@acme.com>',
to: 'sam@example.com',
subject: 'Reset your password',
text: 'Click the link to reset your password.',
});
Swap the three variables and the same code sends through a different provider. It is a good fit when a framework or CMS already expects SMTP, or when you want to switch providers by changing four settings.
With Resend’s API you send one HTTPS request per email and get an id back, then follow its status by webhook. Node 18 and later ship fetch, so you need no dependency at all; see how to send email with Node.js. For a deeper comparison of the two approaches, read SMTP vs API.
Which should you choose?
Choose Resend (API) if
- You are writing new Node.js code and want delivery events and logs.
- You also need inbound email or broadcasts.
- You want one key instead of SMTP host, port and password settings.
Choose Nodemailer if
- Your app or framework already speaks SMTP.
- You want to keep the option to change providers by editing config.
- You still need a provider behind it, and Resend’s SMTP relay is one choice.
A third option
Mailcandor works both ways too. It has a REST API that accepts Resend-shaped requests and an SMTP relay at smtp.mailcandor.com that Nodemailer can use with your API key as the password. Every plan includes unlimited domains, a human review before any restriction, and 3,000 free emails a month. See Mailcandor vs Resend or the SMTP relay.