A server-side TypeScript client that normalizes sends across many email provider adapters with retries, fallbacks, field validation, batching, and observability hooks.
Overview
Email SDK is a TypeScript library for sending transactional email through provider accounts you already hold. You import adapter modules for services such as Resend, Postmark, SendGrid, AWS SES, Mailgun, Brevo, SMTP, and others behind one normalized message shape and send call.
The client supports retries within an adapter and fallback routes across adapters when a provider fails. Field-support checks run before submission so unsupported message fields are not silently dropped. Batch personalization with per-recipient variables and provider-side scheduled sends are included, along with hooks for logs, metrics, and traces and test adapters that never hit real APIs.
A bundled CLI discovers adapters, runs doctor checks with optional live authentication, and supports dry-run smoke sends. The project targets Node 20+ or Bun on the server only and documents flows for production pipelines, retries, and provider comparisons on email-sdk.dev.
Optional anonymous telemetry reports adapter usage and send outcomes without message content or addresses, and can be disabled by environment variable or client configuration.
Key features
- Many provider-specific adapters
- Cross-adapter fallback routes
- Pre-send field support checks
- Retries within adapters
- Batch personalization support
- Test adapters without live sends
- CLI doctor and dry-run commands
- Observability hooks for metrics
Use cases
- Switching transactional email vendors
- Resilient multi-provider sending
- Validating templates before dispatch
- Server actions and API mailers
- Local development without real sends