Skip to content

docs: add Mailtrap SMTP example to Nodemailer provider - #13509

Open
rostyslav48 wants to merge 1 commit into
nextauthjs:mainfrom
rostyslav48:docs/nodemailer-mailtrap-example
Open

rostyslav48 wants to merge 1 commit into
nextauthjs:mainfrom
rostyslav48:docs/nodemailer-mailtrap-example

Conversation

@rostyslav48

@rostyslav48 rostyslav48 commented Oct 26, 2026 •

Copy link
Copy Markdown

☕️ Reasoning

The Nodemailer page only shows a placeholder smtp.example.com server. Mailtrap Email API/SMTP is a common choice for transactional email, and two of its settings aren't guessable: the SMTP username is always api (the password is an API token), and it only sends from a verified sending domain. This adds a short example under the existing connection-string/config tabs, so the setup works with the existing Nodemailer({ server, from }) config and no new code.

Docs used: https://docs.mailtrap.io/email-api-smtp/setup/smtp-integration and https://docs.mailtrap.io/email-api-smtp/setup/sending-domain

Checked manually: sent a magic link through live.smtp.mailtrap.io:587 with this exact connection string using the built Nodemailer provider; Mailtrap logged it as delivered.

🧢 Checklist

  • Documentation
  • Tests
  • Ready to be merged

🎫 Affected issues

None.

📌 Resources

If it's useful, I can follow up with an HTTP Mailtrap email provider (next-auth/providers/mailtrap, sending through the Mailtrap Email API like the Resend provider) in a separate PR.

@vercel

vercel Bot commented Oct 26, 2026

Copy link
Copy Markdown

@rostyslav48 is attempting to deploy a commit to the authjs Team on Vercel.

A member of the Team first needs to authorize it.

This branch has not been deployed

No deployments
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.

1 participant