Transports

Postmark

Send email through the Postmark API.

Send email through the Postmark API.

The one rule

Create this transport under the matching sently channel sender.

Configuration

OptionTypeDefault or requirement
serverTokenstringrequired
import { createMailer } from "sently/mailer";
import { PostmarkTransport } from "sently/transports/postmark";

const sender = createMailer({ transport: new PostmarkTransport({ serverToken: process.env.POSTMARK_TOKEN! }) });
await sender.send({ from: "hello@example.com", to: "person@example.com", subject: "Hello", text: "Hi" });

On this page