Everything you need to know about using senderwolf for secure, fast email delivery
Senderwolf is a developer-friendly email-sending tool built for Node.js environments. It can be used:
Import and use in your Node.js applications
Use via npx senderwolf
npx senderwolf
npm install senderwolf
You'll be prompted to enter recipient email, subject, message body, SMTP credentials, and optional file attachment.
npx senderwolf
Shows a preview of the email instead of sending it.
npx senderwolf --dry-run
Flag | Description |
---|---|
--to | Recipient email address |
--subject | Subject line for the email |
--text | Plain text content |
--html | HTML content (as inline string or path) |
--attach | Path to a file to attach |
--smtp-host | SMTP server host |
--smtp-port | SMTP port (typically 465 or 587) |
--user | SMTP username (email address) |
--pass | SMTP password or app password |
--dry-run | Preview the email without sending |
📝 Short-form flags like -t or -s are not yet supported.
import { sendEmail } from 'senderwolf';
await sendEmail({
to: 'hello@example.com',
subject: 'Test Email',
html: '<h1>Hello from Senderwolf</h1>',
attachments: ['./report.pdf'],
smtp: {
host: 'smtp.gmail.com',
port: 465,
user: 'your@email.com',
pass: 'your_app_password',
},
});
Send emails through any SMTP provider
Rich content and simple text emails
Attach PDFs, images, and other files
User-friendly command line interface
Preview emails before sending
Convenient abbreviated CLI options
Project-based configuration files
Template engines for dynamic content
Robust error handling and recovery
Open an issue or PR at 👉 GitHub Repository