nodemailer
10.3.1 · 29 Oct 2026MIT-036.3M / weekRepositoryHomepagenpmAtom feed
Where each line stands
Plan an upgradeLatest releases
All 307 releases10.3.1
29 Oct 2026Apply the otp option in MailComposer too
10.3.0
29 Oct 2026Anyone sending one-time passcodes by email who wants them to be machine-readable.
Anyone already setting an
OTP-Tokenheader throughheaders: before this release it went out MIME encoded and could not be parsed.Anyone embedding images with a
cidthat holds a non-ASCII character or a quote.
Summary
This release adds support for the
OTP-Tokenheader 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 aContent-IDheader is encoded.Who should upgrade
Anyone sending one-time passcodes by email who wants them to be machine-readable.
Anyone already setting an
OTP-Tokenheader throughheaders: before this release it went out MIME encoded and could not be parsed.Anyone embedding images with a
cidthat holds a non-ASCII character or a quote.
Highlights
New
otpmessage option:otp: { code: '123456', origin: 'https://example.com' }addsOTP-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 newEOTPerror code. See Message configuration.A custom
OTP-Tokenheader is no longer MIME word encoded. Line breaks and control characters are still removed.OTP-Tokenis included in the DKIM signature by default.A
Content-IDheader, from an attachmentcidor set throughheaders, is now encoded as a message id rather than as text, so acidwith a non-ASCII character or a quote keeps matching thecid: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
10.2.1
22 Oct 2026- removed
Drop the comments of a Content-Type or Content-Disposition value with the stripComments option
Dependency tracking · free for 3 projects
Know when your own dependencies move
nodemailer had 23 security advisories in the last 12 months. inlinr emails you the day one touches a project of yours, with the version that fixes it.
Advisories reach you
An email when a critical or high advisory affects a project, before the next install.
Upgrades checked first
Peer ranges, Node, ESM-only and types changes read before you bump.
Only what matters
Majors and breaking notes stay; patches and sibling bumps fold into one line.
Registry facts last checked 6 Nov 2026. Releases and advisories last read 6 Nov 2026.