Repository navigation
docs: add Mailtrap SMTP example to Nodemailer provider - #13509
Open
rostyslav48 wants to merge 1 commit into
Open
rostyslav48 wants to merge 1 commit into
rostyslav48 wants to merge 1 commit into
Conversation
|
@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
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
☕️ Reasoning
The Nodemailer page only shows a placeholder
smtp.example.comserver. Mailtrap Email API/SMTP is a common choice for transactional email, and two of its settings aren't guessable: the SMTP username is alwaysapi(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 existingNodemailer({ 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:587with this exact connection string using the built Nodemailer provider; Mailtrap logged it as delivered.🧢 Checklist
🎫 Affected issues
None.
📌 Resources
If it's useful, I can follow up with an HTTP
Mailtrapemail provider (next-auth/providers/mailtrap, sending through the Mailtrap Email API like the Resend provider) in a separate PR.