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
| Option | Type | Default or requirement |
|---|---|---|
serverToken | string | required |
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" });No. Use the sently sender; provider-specific extras stay on the transport instance.