Postmark vs SendGrid
Postmark vs SendGrid (Twilio SendGrid) for transactional email: a short verdict, side-by-side field support, and one TypeScript send call for either API.
Short answer: Pick Postmark if you send transactional email only and want fast delivery, 45 days of message history and simple volume pricing. Pick SendGrid if marketing campaigns, subusers and dedicated IPs should share an account with your transactional email, or if you need scheduled sending, which Postmark lacks. Email SDK’s field checks pass a Postmark-to-SendGrid fallback for messages without repeated header names, and SendGrid-to-Postmark for messages with no sendAt and at most one tag (Postmark accepts one). Falling back when delivery is unknown also needs onUnknownDelivery: “continue”, which can send a duplicate.
Postmark and SendGrid are the classic head-to-head of transactional email. Postmark’s pitch is focus: transactional mail only (broadcasts live on a separate stream), consistently fast inbox delivery, 45 days of full-content message history, and pricing that is simple if never the cheapest. SendGrid’s pitch is breadth: one platform for transactional and marketing email, dedicated IP options, subusers for multi-tenant setups, and an API that has accumulated every feature over fifteen years — including native scheduled sending, which Postmark lacks. Both support CC, BCC, reply-to, custom headers, attachments, tags, and per-message metadata in the unified message shape, so switching between them with the SDK is nearly lossless; only scheduled sends need a migration plan when moving from SendGrid to Postmark, and the SDK’s field checks will flag exactly that.
Message field support
Field support as encoded in Email SDK’s own adapter capability matrix, the same data the SDK uses to reject sends that would silently drop fields.
| Message field | Postmark | SendGrid |
|---|---|---|
| CC recipients | ✓ | ✓ |
| BCC recipients | ✓ | ✓ |
| Reply-To address | ✓ | ✓ |
| Custom headers | ✓ | ✓ |
| Attachments | ✓ | ✓ |
| Tags | ✓ | ✓ |
| Metadata | ✓ | ✓ |
| Scheduled sending (sendAt) | — | ✓ |
Fallback compatibility
Failing over from SendGrid to Postmark loses: Scheduled sending (sendAt).
Same code, either provider
With Email SDK the send call is identical for both providers. Only the adapter import changes:
import { createEmailClient } from "@opencoredev/email-sdk";
import { postmark } from "@opencoredev/email-sdk/postmark";
const client = createEmailClient({
adapters: [postmark({ serverToken: process.env.POSTMARK_SERVER_TOKEN! })],
});
await client.send({
from: "hello@yourdomain.com",
to: "user@example.com",
subject: "Welcome!",
html: "<p>It works.</p>",
});
Or run both, with automatic fallback:
import { createEmailClient } from "@opencoredev/email-sdk";
import { postmark } from "@opencoredev/email-sdk/postmark";
import { sendgrid } from "@opencoredev/email-sdk/sendgrid";
const client = createEmailClient({
adapters: [
postmark({ serverToken: process.env.POSTMARK_SERVER_TOKEN! }),
sendgrid({ apiKey: process.env.SENDGRID_API_KEY! }),
],
defaultAdapter: "postmark",
fallback: { adapters: ["sendgrid"] },
});
FAQ
Should I use Postmark or SendGrid?
Pick Postmark if you send transactional email only and want fast delivery, 45 days of message history and simple volume pricing. Pick SendGrid if marketing campaigns, subusers and dedicated IPs should share an account with your transactional email, or if you need scheduled sending, which Postmark lacks. Email SDK’s field checks pass a Postmark-to-SendGrid fallback for messages without repeated header names, and SendGrid-to-Postmark for messages with no sendAt and at most one tag (Postmark accepts one). Falling back when delivery is unknown also needs onUnknownDelivery: “continue”, which can send a duplicate.
Can I switch from Postmark to SendGrid without rewriting my email code?
Yes. With Email SDK both providers share one typed send() call and one message shape, so switching from Postmark to SendGrid is a one-line adapter change plus an API key. The SDK fails fast if a message uses a field SendGrid does not support, so nothing is silently dropped.
Which message fields does Postmark support that SendGrid doesn’t?
SendGrid supports every message field that Postmark supports, so nothing is lost moving a message from Postmark to SendGrid.
Can I use SendGrid as a fallback for Postmark?
Partially. Email SDK checks field support before every send: a fallback is rejected from Postmark to SendGrid for messages using repeated header names, and from SendGrid to Postmark for messages using Scheduled sending (sendAt). Messages that avoid those pass the field checks. A failed send still falls back only when the SDK knows the first provider didn’t send it, unless you set onUnknownDelivery: “continue”. Adapter limits also apply. Postmark: Accepts one tag and flattens one name:value tag for the provider payload. SendGrid: Native personalized delivery caps one request at 1,000 recipients. SendGrid: Tag names are discarded; tag values are sent as categories.
Adapter docs
Setup guides: Postmark adapter and SendGrid adapter. Sending from your own domain? Verify SPF, DKIM, and DMARC with the free email DNS checker.
Moving off Postmark? Read the Postmark alternatives guide.
Calling the API directly? Read the SendGrid API guide for Node.js and TypeScript.
Moving off SendGrid? Read the SendGrid alternatives guide.
Estimating the bill? Read the SendGrid pricing guide.