Packages

nodemailer

10.2.1 · 22 Oct 2026MIT-023.7M / weekRepositoryHomepagenpmAtom feed

Your version

10.0.0

major4 Sep 2026Where it was published

10.2.1 is the newest release of 10.x.

In short

1 breaking2 new10 fixed

  • breaking

    Node.js 20 or newer is required. The Node.js 6 syntax compatibility check and the .npmignore file are gone.

Security

12 advisories affect 10.0.0; 10.1.4 fixes them

7 more

Release note

Breaking changes

  • breaking

    Node.js 20 or newer is required. The Node.js 6 syntax compatibility check and the .npmignore file are gone.

Features

  • Keep the @types/nodemailer type layout working

  • Migrate to TypeScript with ES module and CommonJS builds

Bug Fixes

  • Apply the other keys of a configuration object next to its url

  • dkim: canonicalize raw messages the way verifiers do

  • Keep a transporter assignable to the plain Transporter type

  • shared: keep a colon in the user name of a connection or proxy url

  • shared: refuse URL hosts the legacy parser would truncate

  • shared: resolve hostnames when the runtime has no interface table

  • smtp-connection: clear the timers of a connection dropped before the greeting

  • smtp-connection: keep an incomplete server reply out of lastServerResponse

  • smtp-pool: free the pool slot when the proxy socket can not be opened

  • well-known: keep nodemailer/lib/well-known/services.json available