Typed mail classes
Write each email once as an injectable class with typed data, then send(WelcomeMail, { to, data }) from anywhere. Compatible with @nestjs/mail mail classes.
Mail classes
Use what you need. SMTP or HTTP APIs, sent directly, queued or through an outbox, with sendMail(), mail classes or @nestjs/mail.
v4 is out
Mail classes, HTTP transports, retries with duplicate protection, typed errors, a transactional outbox, delivery rules, a test mailbox, email previews and interop with the official @nestjs/mail. Every piece is optional: choose your setup. Read the announcement and the migration guide.
pnpm add @nestjs-modules/mailer nodemailerUsing an older version? Read the v3 or v2 docs, or see Versions & upgrading.