Nodemailer
A strong pick. 2nd of 9 email libraries.
Nodemailer is the standard Node.js library for sending email over SMTP and through transports such as SES. It is mature, has no dependencies and is very actively maintained, so it is a strong pick for new projects. It does not render templates, so most teams pair it with React Email or MJML.
Best for: Node.js backends that send through their own SMTP server or Amazon SES and want no lock-in to a vendor.
Scores
Overall8.1
How strongly do we recommend it for a new project today?
Claude Opus 5.5: 8.0, likely 7.0 to 8.7
It is the default open-source way to send email from Node, and maintenance is active with almost no backlog. Its use is the widest in the category. It does not render, so it pairs with React Email or MJML rather than replacing them. Teams that want a hosted API on edge runtimes do better with Resend. The steady flow of parser advisories and yearly major versions keeps it below 9.
- dependents: Far ahead of all peers
- github commitsLastYear: Very active maintenance
- pkgpulse.com/guides/resend-vs-nodemailer-vs-postmark-email-nodejs-2026: Recommended for SMTP and SES; Resend suggested for fast setup
- advisories last24Months: Frequent moderate advisories
GPT-6.2 Sol: 8.2, likely 7.1 to 9.2
Nodemailer is the strongest choice among these peers for provider-independent SMTP sending from Node.js. React Email complements it for templates, while the Resend SDK is simpler when a project has chosen Resend or its host blocks SMTP. The single-maintainer setup and recent upgrade friction keep it below a default recommendation for the whole category.
- nodemailer.com/transports: One API covers SMTP, SES, sendmail, and test output.
- react.email/docs/integrations/nodemailer: Shows the two libraries working together.
- resend.com/docs/send-with-nodejs: Resend offers a direct API-key workflow for its own service.
- render.com/docs/free: Render's free web services block the common SMTP ports.
- github.com/nodemailer/nodemailer/security: Maintenance is concentrated in one person.
- github.com/nodemailer/nodemailer/blob/master/CHANGELOG.md: Documents the runtime change and v10 compatibility fixes.
Needed by many6.0
How many developers need a tool for this job?
Claude Opus 5.5: 6.0, likely 5.0 to 7.0
Most web app backends send transactional email at some point, so a large group needs this job. Nodemailer covers only the sending half and only on Node-style runtimes. Edge platforms and teams that use a provider's own SDK do not need it.
- pkgpulse.com/guides/best-email-libraries-nodejs-2026: Describes Nodemailer as the transport layer, with templates handled by other tools
- Node runtime requirement: Needs raw TCP sockets, so it is limited on edge runtimes
GPT-6.2 Sol: 5.9, likely 4.6 to 7.0
Transactional email is a common need for web backends, and SMTP lets teams use many different providers. Nodemailer targets Node.js and also supports Bun and a subset of features on Cloudflare Workers. Developer surveys show that Node.js is widespread, but offer little evidence about how many teams need direct SMTP access.
- survey.stackoverflow.co/2026/technology/data: Node.js is widely used among surveyed web developers.
- github.com/nodemailer/nodemailer/blob/v10.6.1/README.md: Documents Node.js 20+, Bun, and limited Cloudflare Workers support.
- authjs.dev/getting-started/providers/nodemailer: Shows a common use case in email sign-in.
Helps a lot8.2
How well does it do the job for those who need it?
Claude Opus 5.5: 8.0, likely 7.0 to 9.0
It is the most complete open-source SMTP client for JavaScript. It handles pooling, DKIM, OAuth2, SES, streams, attachments and an addressparser with years of fixes for edge cases. AI agents write correct code for it easily because its API has stayed stable for a long time. It does no templating, and debugging SMTP setup is still painful, which keeps it below 9.
- pkgpulse.com/guides/best-email-libraries-nodejs-2026: Praises verify(), DKIM and support for any SMTP server; notes SMTP debugging is painful
- npm hasTypes: Types are available
- pkgpulse.com/guides/resend-vs-nodemailer-vs-postmark-email-nodejs-2026: Recommended for self-hosted SMTP and SES setups
GPT-6.2 Sol: 8.4, likely 7.2 to 9.3
Version 10.6.1 combines mature SMTP controls, connection pooling, and MIME composition with bundled types and a documented error reference. Those give developers and coding agents clear examples and typed inputs for routine sends. React Email and MJML cover responsive rendering, and independent performance and coding-agent results for v10 are sparse.
- nodemailer.com: Documents bundled declarations, module formats, and the send API.
- nodemailer.com/errors: Documents error codes and troubleshooting by failure type.
- github.com/nodemailer/nodemailer/blob/v10.6.1/README.md: Documents per-send cancellation for pooled and unpooled SMTP.
- react.email/docs/integrations/nodemailer: Shows React Email rendering the HTML that Nodemailer sends.
Holds up over time7.5
Will it still be a good choice in two years?
Claude Opus 5.5: 7.5, likely 6.5 to 8.5
Activity is very high: 350 commits and 58 releases in the past year, 0 open issues, and a project that has run for 15 years. Andris Reinman is the main maintainer and backs it through his commercial EmailEngine work, so the project leans on one person. Three major releases in 2026 brought small breaking changes, such as Node 20 now being required, error code renames and stricter TLS.
- github commitsLastYear / releasesLastYear: 350 commits and 58 releases
- github openIssues: 0 open issues against 1515 closed
- newreleases.io/project/npm/nodemailer/release/10.0.0: 10.0.0 on 2026-09-03 requires Node 20 or newer
- newreleases.io/project/npm/nodemailer/release/9.0.0: 9.0.0 breaking changes: WHATWG URL and TLS validated by default
GPT-6.2 Sol: 7.4, likely 6.1 to 8.5
The project shipped 58 releases and recorded 350 commits in a year, and a recent SMTP request reached a release in four days. The v10 migration raised the Node.js minimum, and users reported type regressions that needed follow-up fixes. Forward Email reports sponsoring the work, but the project names one maintainer and backup release access is unclear.
- github commitsLastYear, releasesLastYear, latestRelease: 350 commits, 58 releases, and a November 20 release.
- github.com/nodemailer/nodemailer/issues/1915: A November 11 user request shipped in v10.6.0 on November 15.
- github.com/nodemailer/nodemailer/issues/1853: User reported a breaking change under strict TypeScript settings.
- github.com/nodemailer/nodemailer/blob/master/CHANGELOG.md: Records the Node.js 20 requirement and post-migration compatibility fixes.
- github.com/nodemailer/nodemailer/security: The security policy identifies a single maintainer.
- forwardemail.net/en/blog/docs/how-npm-packages-billion-downloads-shaped-javascript-ecosystem: Forward Email reports sponsoring Nodemailer's maintainer.
Used widely8.4
How many use it, and is that growing?
Claude Opus 5.5: 9.0, likely 8.0 to 9.5
Nodemailer had about 150M downloads in 4 weeks, up from 29M a year ago. That ratio of 5.1 is above the 4.1 median, so it is gaining ground. Many downloads come in transitively through Auth.js, CMSs and other tools. Even so, 214,737 dependent repositories is roughly ten times the next peer, which points to hundreds of thousands of direct choices.
- npm downloadsLast4Weeks / downloadsSame4WeeksYearAgo: 149.8M vs 29.4M, a ratio of 5.1 against the 4.1 median
- dependents: 214,737 repositories and 5,947 packages; SendGrid is next with 24k
- github stars: 17.7k stars
GPT-6.2 Sol: 7.8, likely 6.7 to 8.9
Ecosyste.ms tracks about 215,000 repositories and 5,947 packages depending on Nodemailer, comfortably ahead of the listed peers. Downloads rose 5.1× year over year, above the 4.1× catalog baseline, while React Email and Resend grew faster from smaller bases. Automated installs and framework dependencies blur how many teams chose it recently, and the two tracked Bluesky posts add little evidence about that.
- dependents repos, packages: 214,737 tracked repositories and 5,947 npm packages.
- npm downloadsLast4Weeks, downloadsSame4WeeksYearAgo, medianDownloadsRatio: 149.8 million versus 29.4 million downloads, against a 4.1× baseline.
- peers dependentRepos, downloadsLast4Weeks, downloadsSame4WeeksYearAgo: SendGrid has about 24,000 tracked repositories, while Resend and React Email grew 15.8× and 8.3×.
- bluesky posts: Two posts linked to the repository in the tracked period.
- nest-modules.github.io/mailer/guide/getting-started: A downstream mailer uses Nodemailer for several transports.
Vouched for7.8
Who stands behind it being good?
Claude Opus 5.5: 7.5, likely 6.5 to 8.5
Major frameworks and products build on it, including the Auth.js email provider, Strapi, Payload and Ghost. Independent guides still name it the default for SMTP and SES sending. Survey data and independent benchmarks are scarce, and online buzz is small (1 HN story, 2 Bluesky posts), so the range stays wide.
- Auth.js / Strapi / Payload email adapters: Widely used frameworks build on Nodemailer
- pkgpulse.com/guides/best-email-libraries-nodejs-2026: Independent guide calls it battle-tested
- bluesky posts / hackerNews stories: Little social discussion
GPT-6.2 Sol: 8.0, likely 6.8 to 9.0
Payload and Auth.js maintain integrations, and NestJS Mailer builds its SMTP support on Nodemailer. A user running a transactional email worker also reports using pooled SMTP in practice. These sources validate the sending role, while evidence on developer satisfaction and comparative performance for v10 remains thin.
- payloadcms.com/docs/email/overview: Payload ships a Nodemailer email adapter.
- authjs.dev/getting-started/providers/nodemailer: Auth.js supports Nodemailer for email sign-in links.
- nest-modules.github.io/mailer/guide/getting-started: NestJS Mailer uses Nodemailer for SMTP, SES, and sendmail.
- github.com/nodemailer/nodemailer/issues/1915: A transactional email worker uses pooled SMTP and cancellation.
Safe6.5
How safe is it to depend on?
Claude Opus 5.5: 6.0, likely 5.0 to 7.0
It has zero dependencies and the permissive MIT-0 licence. It also had 24 advisories in 24 months, all moderate and mostly in address parsing and DoS, and fixes shipped quickly. The Scorecard is 5.9, with weak Code-Review, Token-Permissions, Fuzzing and SAST checks, and one person publishes it. A malicious package once impersonated it, so users should check the package name.
- advisories: 27 in total, 24 in 24 months, recent ones moderate
- scorecard: 5.9 overall; Code-Review 2, Token-Permissions 0, Fuzzing 0
- npm dependencies / license: 0 dependencies, MIT-0
- tuxcare.com/cve-tracker/cve/details/ghsa-8c8m-p3m8-cjg8: addressparser comment bug affecting 3.0.0 to 10.1.3, CVSS 6.5
- hackerNews top: A malicious package impersonated Nodemailer
GPT-6.2 Sol: 7.0, likely 5.8 to 8.1
The core package has zero runtime dependencies, uses the permissive MIT-0 licence, and publishes from GitHub Actions with npm provenance. The current release includes October SMTP fixes that were available by disclosure and a November recipient-domain fix shipped on disclosure day. Scorecard's weak token permissions and code review checks, plus uncertain backup publishing access, limit confidence in the release process.
- npm dependencies, license: Zero runtime dependencies and a commercially permissive MIT-0 licence.
- scorecard score, checks: 5.9 overall, with Token-Permissions at 0 and Code-Review at 2.
- github.com/nodemailer/nodemailer/blob/v10.6.1/.github/workflows/release.yaml: The release workflow publishes to npm with provenance.
- github.com/advisories/GHSA-4ffr-jq9g-5ffx: SMTP authentication parsing was patched in 10.0.13.
- github.com/advisories/GHSA-4g23-2xm8-66gc: SMTP reply parsing was patched in 10.0.10.
- github.com/nodemailer/nodemailer/security/advisories/GHSA-2g53-87p2-4qq8: A recipient-domain parsing fix shipped in 10.4.1 on disclosure day.
- github.com/nodemailer/nodemailer/security: One maintainer handles security triage.
Good
- It has no runtime dependencies and uses the permissive MIT-0 licence.
- It covers SMTP fully: pooling, DKIM signing, OAuth2, attachments, an SES transport and a verify() check.
- It is very actively maintained: 350 commits and 58 releases in the last year, with no open issues.
- Ecosyste.ms finds about 215k dependent repositories, far more than any peer. Auth.js, Strapi and many CMSs build on it.
Bad
- It only sends mail. Templating and responsive HTML need a separate tool such as React Email or MJML.
- There were about 24 moderate advisories in 24 months, mostly in address parsing and DoS. Users must keep upgrading.
- Three major versions shipped in 2026 (8, 9 and 10). Each had small but real breaking changes.
- It needs Node's TCP sockets, so it does not run on edge or serverless runtimes that lack them. Hosted APIs such as Resend do.
The numbers
- npm downloads, 4 weeks
- 150M ×5.1 in a year
- GitHub stars
- 18k
- Commits, 12 months
- 350
- npm version
- 10.6.1 Nov 2026
- Versions, 12 months
- 58
- Advisories, 24 months
- 24 of 27 ever
- OpenSSF Scorecard
- 5.9 out of 10, Nov 2026
- Licence
- MIT-0
Read on 21 November 2026 from GitHub (nodemailer/nodemailer), npm (nodemailer), OSV and the OpenSSF Scorecard.
Email libraries
- 8.2React Email
- 8.1Nodemailer
- 7.5Resend SDK
- 7.3MJML
- 6.7Postmark.js
- 6.3Maizzle
- 6.3Mailgun.js
- 4.9SendGrid SDK
- 4.7Email Templates