Plunk
Configure the Plunk send API adapter.
import { createEmailClient } from "@opencoredev/email-sdk";
import { plunk } from "@opencoredev/email-sdk/plunk";
const email = createEmailClient({
adapters: [plunk({ apiKey: process.env.PLUNK_API_KEY! })],
});
Options
| Option | Type | Required | Notes |
|---|---|---|---|
apiKey |
string |
Yes | Plunk API key. |
baseUrl |
string |
No | Defaults to https://next-api.useplunk.com. |
fetch |
typeof fetch |
No | Useful for tests or custom runtimes. |
Plunk maps metadata to data. Unsupported fields throw before the API call.