Skip to content

Conversation

@toufali
Copy link
Member

@toufali toufali commented Dec 2, 2025

Because

  • We want to maintain the latest version of nodemailer

This pull request

  • Upgrades nodemailer and its types
  • Upgrades the shared email sender in libs to be fully compatible with this version 7.
  • Upgrades the legacy auth sender code for version 7
  • Adds 2 tests to confirm basic nodemailer functionality

Issue that this pull request solves

Closes: FXA-12726

Notes

Nodemailer 7 now negotiates STARTTLS by default. Our legacy mail helper (simplesmtp/rai) that runs in dev/CI is very old and still calls crypto.createCredentials, which no longer exists in Node 22. As soon as Nodemailer tries STARTTLS against that helper, the helper throws and dies, breaking account creation/tests. This only happens in dev/CI, because production/stage use real SMTP endpoints.

@toufali toufali requested a review from a team as a code owner December 2, 2025 23:33
@toufali toufali force-pushed the upgrade-to-nodemailer7 branch 2 times, most recently from d9059e0 to 66d3250 Compare December 4, 2025 18:18
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants