Packages

nodemailer

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

Your version

10.3.0

29 Oct 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: 5 new, 5 fixed.

New

  • This release adds support for the OTP-Token header from the IETF draft draft-goto-otp-token, which lets mail clients and browsers offer a one-time passcode for autofill on the site it belongs to. It also fixes how a Content-ID header is encoded.
  • Anyone sending one-time passcodes by email who wants them to be machine-readable.
  • New otp message option: otp: { code: '123456', origin: 'https://example.com' } adds OTP-Token: "123456"; origin="https://example.com". The origin is reduced to its canonical form, only https (or http on a loopback host) is accepted, and invalid values fail the send with the new EOTP error code. See Message configuration.
  • OTP-Token is included in the DKIM signature by default.
  • Groundmail added to the well-known services.

In short

6 new5 fixed

Release note

Summary

This release adds support for the OTP-Token header from the IETF draft draft-goto-otp-token, which lets mail clients and browsers offer a one-time passcode for autofill on the site it belongs to. It also fixes how a Content-ID header is encoded.

Who should upgrade

  • Anyone sending one-time passcodes by email who wants them to be machine-readable.

  • Anyone already setting an OTP-Token header through headers: before this release it went out MIME encoded and could not be parsed.

  • Anyone embedding images with a cid that holds a non-ASCII character or a quote.

Highlights

  • New otp message option: otp: { code: '123456', origin: 'https://example.com' } adds OTP-Token: "123456"; origin="https://example.com". The origin is reduced to its canonical form, only https (or http on a loopback host) is accepted, and invalid values fail the send with the new EOTP error code. See Message configuration.

  • A custom OTP-Token header is no longer MIME word encoded. Line breaks and control characters are still removed.

  • OTP-Token is included in the DKIM signature by default.

  • A Content-ID header, from an attachment cid or set through headers, is now encoded as a message id rather than as text, so a cid with a non-ASCII character or a quote keeps matching the cid: URL in the HTML.

  • Groundmail added to the well-known services.

Features

  • Add the otp option for the OTP-Token header

Bug Fixes

  • Encode a Content-ID header as a message id

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.