Packages

nodemailer

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

Upgrading nodemailer From 8.0.11 to 10.3.1

38 releases in betweenevery note read

Other targets from 8.0.11Clears its 15 advisories10.1.4Latest10.6.0
  1. 8.0.11yours
  2. 9.0.0major
  3. 8 releases
  4. 10.0.0major
  5. 25 releases
  6. 10.2.1breaking
  7. 1 release
  8. 10.3.1target

Before you upgrade

Tick each one off as you go
  • Breaking10.2.1
  • Breaking10.0.0
  • Breaking9.0.0

Security

Fixes 15 advisories affecting 8.0.11

Release by release

  1. 10.3.1

    29 Oct 20261 fix
    • Fixed

      Apply the otp option in MailComposer too

  2. 10.3.0

    29 Oct 20266 new · 1 fix
    • New

      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.

    • New

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

    • New

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

    • New

      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.

    • New

      Groundmail added to the well-known services.

    • New

      Add the otp option for the OTP-Token header

    • Fixed

      Encode a Content-ID header as a message id

  3. 10.2.1

    Migration needed22 Oct 2026
    • Breaking

      Drop the comments of a Content-Type or Content-Disposition value with the stripComments option

  4. 10.2.0

    21 Oct 20264 new · 2 fixes
    • New

      Add info.serverMessageId from the final 250 reply

    • New

      Add pendingCount() to the SMTP pool

    • New

      Make header value encoding public with MimeNode encodeHeaderValue()

    • New

      Mark SMTP errors as permanent or transient with err.permanent

    • Fixed

      Label an ASCII message/rfc822 attachment 7bit instead of 8bit

    • Fixed

      Report the recipients an LMTP server refuses after DATA in rejectedErrors

  5. 10.1.7

    18 Oct 20261 fix
    • Fixed

      mime-funcs: encode parameter values that look like encoded words

  6. 10.1.6

    18 Oct 20261 fix
    • Fixed

      addressparser: read groups in the same pass as the rest of the list

  7. 10.1.5

    18 Oct 20262 fixes
    • Fixed

      addressparser: handle an address list without copying it per address

    • Fixed

      addressparser: tokenize into offsets instead of an object per token

  8. 10.1.4

    18 Oct 20269 fixes
    • Fixed

      addressparser: apply the unexpected "<" rule outside quotes and comments

    • Fixed

      addressparser: bound group nesting at ten levels

    • Fixed

      addressparser: drop the obsolete route from an angle-addr

    • Fixed

      addressparser: end a comment only at the ")" that closes the outermost one

3 other lines we could not sort, mostly version bumps
  • Anyone sending one-time passcodes by email who wants them to be machine-readable.

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

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

    10.3.0

1 internal line (docs, tests, tooling) left out.

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.