Skip to content
Email SDK
Esc
↑↓navigate↵open⌘Jpreview
On this page

Plunk

Send through the Plunk API with reply-to, headers, attachments, and metadata mapped to Plunk data.

Capabilities

Repeated headers Idempotency Scheduling Personalized
No none No expanded

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

The Plunk adapter calls the Plunk send API with plain fetch. Plunk takes a single body field, so the adapter sends html when present and falls back to text.

Plunk logo
Plunk@opencoredev/email-sdk/plunk
Provider docs

Configure

Create a secret API key in your Plunk project and verify the sender you plan to use in from.

PropType
apiKeystring

Plunk secret API key.

Typestring
baseUrl?string

Override the API origin, e.g. for a proxy.

Typestring
Default"https://next-api.useplunk.com"
fetch?typeof fetch

Custom fetch implementation for tests or special runtimes.

Typetypeof fetch

Send

Plunk supports headers, attachments, metadata (sent as Plunk data), and a single replyTo (sent as reply, email address only; a second reply-to throws an EmailValidationError).

Verify from the CLI

Drop --dry-run for one real smoke send to confirm the API key and verified sender work end to end.

Frequently asked questions

Does Email SDK support Plunk?

Yes. Email SDK ships a Plunk adapter imported from @opencoredev/email-sdk/plunk. You keep your Plunk 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 Plunk adapter support?

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

Can Plunk schedule email for later with Email SDK?

No. Plunk 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 Plunk adapter support idempotent sends?

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

Last updated on