Installation

Base Package

npm install @impruthvi/nodemail

The base package includes SMTP support via Nodemailer (~25 MB). All other providers and features are optional peer dependencies — install only what you need.

Provider Add-ons

SendGrid
npm install @sendgrid/mail
AWS SES
npm install @aws-sdk/client-ses
Mailgun
npm install mailgun.js form-data
Resend
npm install resend
Postmark
npm install postmark

Template Engine Add-ons

Handlebars
npm install handlebars
EJS
npm install ejs
Pug
npm install pug

Markdown Add-ons

npm install marked juice

Queue Add-ons

BullMQ (recommended)
npm install bullmq ioredis
Bull (legacy)
npm install bull