Decorators

Preview

Write email previews to disk instead of delivering them.

Write email previews to disk instead of delivering them.

The one rule

Preview is for development, not delivery.

Configuration

outDir, open, and format are optional; defaults are ./.emails, false, and eml.

import { PreviewTransport } from "sently/transports/preview";

const transport = new PreviewTransport({ outDir: ".emails", open: true });
const mailer = await createMailer({ transport });

On this page