SMTP + Better-Notify
Connect Better-Notify to any SMTP-compatible mail server — Gmail, Amazon SES, Postfix, or your own. Backed by Nodemailer with connection pooling, DKIM signing, and automatic error classification.
Install
npm install @betternotify/smtpQuick start
import { createClient } from '@betternotify/core';
import { smtpTransport } from '@betternotify/smtp';
const mail = createClient({
catalog,
transportsByChannel: {
email: smtpTransport({
host: 'smtp.example.com',
port: 587,
auth: { user: 'user', pass: 'pass' },
}),
},
});
await mail.welcome.send({ to: 'user@example.com', input: { name: 'Alice' } });Features
- Works with any SMTP server
- Connection pooling for high throughput
- DKIM signing support
- TLS/STARTTLS encryption
- Automatic error classification