Packages

nodemailer

10.6.0 · 15 Nov 2026MIT-040.3M / weekRepositoryHomepagenpmAtom feed

Your version

10.5.0

10 Nov 2026Where it was published

10.6.1 is the newest release of 10.x.

Summary· from the note as AI read it

No actionNothing to change: 3 new, 6 fixed.

New

  • Anyone who wants to cancel or time-limit a single send without closing the transport or pool.
  • AbortSignal per send: sendMail({ ..., signal }) on SMTP and pooled SMTP. An abort removes a queued message from the pool, or closes only the connection delivering it, and the send fails with an AbortError (code EABORT). Other transports honor a signal that is already aborted and otherwise ignore it. Note that an abort late in DATA does not prove the server did not accept the message, so do not treat EABORT as safe to retry blindly.
  • smtp: support AbortSignal for individual sends

In short

3 new6 fixed

Release note

Summary

Adds per-message cancellation to sendMail() with an AbortSignal, plus two encoding fixes: DKIM signatures for internationalized domains, and header text that looks like a broken encoded-word.

Who should upgrade

  • Anyone who signs with DKIM for a domain written with upper case or mapped non-ASCII characters (an upper case IDN label, or one holding a soft hyphen). The d= tag named a different domain than From:, so verification and DMARC alignment failed.

  • Anyone who wants to cancel or time-limit a single send without closing the transport or pool.

Highlights

  • AbortSignal per send: sendMail({ ..., signal }) on SMTP and pooled SMTP. An abort removes a queued message from the pool, or closes only the connection delivering it, and the send fails with an AbortError (code EABORT). Other transports honor a signal that is already aborted and otherwise ignore it. Note that an abort late in DATA does not prove the server did not accept the message, so do not treat EABORT as safe to retry blindly.

  • DKIM: the d= domain is encoded with UTS-46 mapping, the same way as the address headers.

  • Header encoding: plain text that a receiver would decode as an encoded-word without it being a valid one (such as =?utf-8?Q?a b?= across a space) is now encoded. A valid encoded-word is still passed through, so subjects that are already encoded are not encoded twice.

  • SMTP connection: a supplied socket no longer connects, and TLS no longer starts, after the connection was closed.

Features

Bug Fixes

  • dkim: encode the d= domain the same way as the address headers

  • mime-funcs: encode header text that would be decoded as an invalid encoded word

A whole project to check? Paste its package.json in the dependency check: every deprecated, outdated or vulnerable dependency, with what to upgrade to. Free, no account.