Skip to content
You're viewing documentation for v0.6.0. It may be out of date.Go to latest
Email SDK
Esc
↑↓navigate↵open⌘Jpreview
On this page

SparkPost

Configure the SparkPost Transmissions API adapter.

SparkPost logo
SparkPost@opencoredev/email-sdk/sparkpost
Provider docs

SparkPost sends transmissions with one normalized recipient list, reply-to, headers, metadata, tag-derived substitution data, and attachments. It does not support normalized CC or BCC through this adapter.

Before live sends

Create a SparkPost API key with Transmissions permission, verify the sending domain, and choose whether to use SparkPost sandbox mode. Set sandbox: true for provider-side sandbox validation without normal delivery.

Configure

Send

SparkPost does not expose normalized CC/BCC in this adapter. It maps metadata to metadata and tags to substitution_data.

Send with an attachment

Options

Option Type Required Notes
apiKey string Yes SparkPost API key.
baseUrl string No Defaults to https://api.sparkpost.com/api/v1.
sandbox boolean No Enables SparkPost sandbox mode.
fetch typeof fetch No Useful for tests or custom runtimes.

SparkPost does not expose normalized CC/BCC in this adapter. See field support.

Response

The adapter maps SparkPost results.id or results.transmission_id to the normalized id field.

CLI smoke test

Last updated on