Adapters
Postmark
Send through Postmark with its native SDK or direct HTTP API.
Native SDK
pnpm add @postbote/core @postbote/adapter-postmarkimport { postmark } from "@postbote/adapter-postmark";
const adapter = postmark({
serverToken: process.env.POSTMARK_SERVER_TOKEN!,
messageStream: "outbound",
});Pass client to inject an existing ServerClient. timeoutMs is forwarded to the SDK.
HTTP adapter
pnpm add @postbote/core @postbote/adapter-postmark-httpimport { postmarkHttp } from "@postbote/adapter-postmark-http";
const adapter = postmarkHttp({
serverToken: process.env.POSTMARK_SERVER_TOKEN!,
messageStream: "outbound",
});The HTTP adapter accepts baseUrl, timeoutMs, and custom fetch. Postmark accepts at most 50 recipients in its comma-separated fields; the adapter reports an INVALID_MESSAGE error when that limit is exceeded.
Postmark tags.tag is also mapped to the provider's native Tag field.