Skip to main content
NestJS Email Toolkit

Build dependable email flows for production NestJS apps.

`nestjs-mailable` gives you class-based mailables, template engines, transport switching, retries, events, and testing utilities in one cohesive developer experience.

SMTPSESMailgunMailjet

Designed for maintainable email systems

This package is built for teams that want clean architecture in code and predictable behavior in production.

Architecture

Class-based mail design

Organize email logic with dedicated mailable classes and keep transport/template concerns separate from service code.

  • envelope()
  • content()
  • attachments()
  • headers()
Delivery

Transport flexibility

Switch between SMTP, SES, Mailgun, and Mailjet through typed configuration without rewriting business workflows.

  • SMTP
  • AWS SES
  • Mailgun
  • Mailjet
Quality

Testing-first workflow

Validate email behavior quickly with built-in mocks, fake transports, and test module helpers for unit and integration tests.

  • Mock support
  • Fluent assertions
  • Module helpers
  • Jest friendly