Email SDK
Adapters

Plunk

Configure the Plunk send API adapter.

Plunk logo
Plunk
email-sdk/plunk
import { createEmailClient } from "email-sdk";
import { plunk } from "email-sdk/plunk";

const email = createEmailClient({
  adapters: [plunk({ apiKey: process.env.PLUNK_API_KEY! })],
});

Options

OptionTypeRequiredNotes
apiKeystringYesPlunk API key.
baseUrlstringNoDefaults to https://next-api.useplunk.com.
fetchtypeof fetchNoUseful for tests or custom runtimes.

Plunk maps metadata to data. Unsupported fields throw before the API call.

On this page