Comparison

Resend vs Nodemailer

Short answer

Resend and Nodemailer are not alternatives. Nodemailer is a free Node.js library that builds an email and hands it to an SMTP server. Resend is a hosted email service that actually delivers the email, through its own API or its SMTP relay. You can use Nodemailer with Resend, or skip Nodemailer and call Resend's API with fetch. What you still need is a provider that delivers mail.

Last checked 16 November 2026

At a glance

FeatureResendNodemailer
What it isHosted email sending serviceNode.js library (npm package)
Delivers email itselfYes, from its own infrastructureNo, it hands mail to an SMTP server or other transport
PriceFree 3,000/month; Pro $20/month for 50,000Free library; you pay whoever runs the SMTP server
How you call itHTTP API or SMTP relayJavaScript in your Node.js app
LanguagesNode.js, PHP, Python, Ruby, Go, Rust, Elixir, Java, .NETNode.js only
Domain verification (SPF, DKIM)Handled in the dashboardDepends on your SMTP provider
Delivery logs30 daysNone built in
Bounce and complaint webhooksYesNo, comes from your provider
Inbound emailYes, all plansNo (sending library)
Use together?Yes, point Nodemailer at Resend's SMTP relayYes, as the client for any SMTP provider
Verdict

This is not an either-or choice. Nodemailer is a client library; Resend is a delivery service. If your app already uses Nodemailer, keep it and point it at an SMTP relay such as Resend's. If you are starting fresh, you can skip the library and call an email API with fetch.

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:

  1. Should I call an email API directly, or use Nodemailer over SMTP?
  2. 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.

Sources

Competitor facts were checked on 16 November 2026 against these pages. Prices change; check the vendor's page before you decide.

Questions

Is Resend a replacement for Nodemailer?

Not exactly. Nodemailer is a library that sends mail through an SMTP server you provide. Resend is the service that delivers mail. Resend's own SDK or a plain fetch call can replace Nodemailer in your code, but you still need a delivery service either way.

Can I use Nodemailer with Resend?

Yes. Resend offers an SMTP relay, so you configure a Nodemailer transport with Resend's SMTP host and your API key as the password, and your existing code keeps working.

Is Nodemailer free?

The library is free. Sending is not: you need an SMTP server, and for app email that is usually a paid email service. Sending through a personal Gmail account is limited and not meant for app email.

Should I use an API or SMTP from Node.js?

For new code an HTTP API is usually simpler: one request per email, a message id back, and delivery events by webhook. SMTP with Nodemailer is the right call when your code or framework already speaks SMTP.

Related

Send with someone on your side.

Unlimited domains on every plan, a person before any block, and 3,000 emails a month free. Tell us what you send and we set you up within one business day.