Providers

Postmark

Send email through Postmark.
import { createClient } from '@nicogenz/emails-sdk';
import { postmark } from '@nicogenz/emails-sdk/postmark';

const email = createClient({
  provider: postmark({ serverToken: process.env.POSTMARK_SERVER_TOKEN! }),
});

Options

OptionTypeRequiredDescription
serverTokenstringYesYour Postmark server API token.
messageStreamstringNoThe message stream to send through. Postmark uses outbound if not set.
fetchtypeof fetchNoA custom fetch implementation.

Notes

  • tags are sent as Postmark Metadata.
  • idempotencyKey isn't supported. Passing one throws an EmailError with the code unsupported.
  • sendBatch uses Postmark's batch endpoint and splits batches larger than 500 emails.
Copyright © 2026