Skip to main content

NestJS Mailer

A mailer module for the NestJS framework using Nodemailer

Quick Install

pnpm add @nestjs-modules/mailer nodemailer

Built on Nodemailer

Leverages the battle-tested Nodemailer library for reliable email delivery. Supports SMTP, SES, sendmail, and more.

Multiple Template Engines

Choose from Handlebars, Pug, EJS, Liquid, or MJML for responsive emails. Mix and match as needed.

NestJS Native

First-class NestJS integration with dependency injection, async configuration, and module patterns.

Multiple Transporters

Configure multiple SMTP servers and switch between them per message. Add transporters dynamically at runtime.

CSS Inlining

Built-in CSS inlining powered by css-inline ensures your emails render correctly across all clients.

Preview Emails

Preview your emails in the browser during development with the preview-email integration.