Skip to content

Older version

You're reading the docs for v3 (3.0.x). The latest version is v4.

Read the v4 guide · Migrate from v3 to v4 · Versions & upgrading

v3 documentation ​

These are the docs for @nestjs-modules/mailer 3.0.x, archived as they were for the last v3 release (3.0.2). v3 is in maintenance: it gets security fixes for now, and new features land in v4. See Versions & upgrading for the support status.

Install ​

Pin the major version so a fresh install doesn't pull v4:

bash
pnpm add @nestjs-modules/mailer@^3 nodemailer
bash
npm install @nestjs-modules/mailer@^3 nodemailer
bash
yarn add @nestjs-modules/mailer@^3 nodemailer

Template engines are optional peer dependencies and are not installed automatically. Add the one your adapter uses, for example pnpm add handlebars.

Requirements ​

v3
NestJS7 – 12 (tested on 11 and 12)
Node.js20 or later (tested on 20, 22 and 24). NestJS 12 needs Node.js >= 20.19 (or >= 22.12)
nodemailer>= 8.0.5
Template enginesOptional peers: handlebars >= 4.7.9, pug >= 3.0.3, ejs >= 3.1.10, liquidjs >= 10.25.5, nunjucks >= 3.2.0, mjml >= 4.15.3
Optional integrations@nestjs/event-emitter >= 2, @nestjs/terminus >= 10, bullmq >= 4, preview-email >= 3.0.19

Pages ​

Upgrading ​

Released under the MIT License.