@nauth-toolkit/email-nodemailer
v0.2.5
Published
Nodemailer email provider for nauth-toolkit — SMTP, SES, Gmail
Downloads
503
Maintainers
Readme
@nauth-toolkit/email-nodemailer
Nodemailer email provider for nauth-toolkit.
Sends verification codes, password reset emails, and MFA notifications using Nodemailer. Works with any SMTP server, AWS SES, Gmail, or other Nodemailer-supported transports. Includes Handlebars-based email templates with file-based customization.
Part of nauth-toolkit. Requires
@nauth-toolkit/core.
Install
npm install @nauth-toolkit/email-nodemailerConfigure in your auth config:
import { NodemailerEmailProvider } from '@nauth-toolkit/email-nodemailer';
const authConfig = {
emailProvider: new NodemailerEmailProvider({
host: process.env.SMTP_HOST,
port: 587,
auth: {
user: process.env.SMTP_USER,
pass: process.env.SMTP_PASS,
},
from: '[email protected]',
}),
};Also available
| Package | Purpose |
| --- | --- |
| @nauth-toolkit/email-console | Log emails to console — development use |
See the full package list in the core README.
Free to use. See license.
