Skip to content
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.

Capabilities

Repeated headers Idempotency Scheduling Personalized
Yes none No expanded

These values come from the adapter’s exported capabilities declaration. The field support matrix covers normalized message fields.

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.

Compare Postmark with other providers

Side-by-side message-field support from the SDK capability matrix, with working code for both adapters:

Moving off Postmark? The Postmark alternatives guide compares five APIs and walks through a switch with Postmark as the fallback.

Frequently asked questions

Does Email SDK support Postmark?

Yes. Email SDK ships a Postmark adapter imported from @opencoredev/email-sdk/postmark. You keep your Postmark account and credentials; the SDK adds message validation, typed errors, and no-network test adapters around the same send() call used for every other provider.

Which message fields does the Postmark adapter support?

Postmark supports CC recipients, BCC recipients, Reply-To address, Custom headers, Attachments, Tags, and Metadata. It does not support Scheduled sending (sendAt); Email SDK rejects a message that uses those fields before any request is made.

Can Postmark schedule email for later with Email SDK?

No. Postmark has no provider-side scheduling, so a message with sendAt fails validation. Store the job in your own queue and send when it is due.

Does the Postmark adapter support idempotent sends?

No. Postmark has no provider-side idempotency, so a retried send can be delivered twice. A send with idempotencyKey on a route that includes Postmark fails with EmailValidationError unless you pass idempotency: “best-effort”. Deduplicate in your own queue before retrying.

Last updated on