Skip to content
You're viewing documentation for v0.6.5. It may be out of date.Go to latest
Email SDK
Esc
↑↓navigate↵open⌘Jpreview
On this page

Postmark

Send through the Postmark Email API with message streams, metadata, and Postmark's single-tag model.

The Postmark adapter calls the Postmark Email API with plain fetch. Its distinctive feature is message streams: set messageStream once and every send routes through that Postmark stream.

Postmark logo
Postmark@opencoredev/email-sdk/postmark
Provider docs

Configure

Create a server token for the server you send through, and make sure the sender signature or domain is approved in Postmark.

PropType
serverTokenstring

Postmark server token.

Typestring
messageStream?string

Postmark message stream to send through.

Typestring
baseUrl?string

Override the API origin, e.g. for a proxy.

Typestring
Default"https://api.postmarkapp.com"
fetch?typeof fetch

Custom fetch implementation for tests or special runtimes.

Typetypeof fetch
headers?Record<string, string>

Extra HTTP headers sent with every request.

TypeRecord<string, string>

Send

Postmark maps cc, bcc, replyTo, headers, attachments, metadata, and one tag.

metadata becomes Postmark Metadata, and result.accepted echoes Postmark’s To line.

Verify from the CLI

The token also accepts the --server-token flag. Drop --dry-run for one real send to confirm the server token, sender signature, and message stream actually work together.

Last updated on