Mailchimp Transactional
Configure the Mailchimp Transactional adapter.
Mailchimp Transactional is the API formerly known as Mandrill.
import { createEmailClient } from "@opencoredev/email-sdk";
import { mailchimp } from "@opencoredev/email-sdk/mailchimp";
const email = createEmailClient({
adapters: [mailchimp({ apiKey: process.env.MAILCHIMP_API_KEY! })],
});
Options
| Option | Type | Required | Notes |
|---|---|---|---|
apiKey |
string |
Yes | Mailchimp Transactional API key. |
baseUrl |
string |
No | Defaults to https://mandrillapp.com/api/1.0. |
fetch |
typeof fetch |
No | Useful for tests or custom runtimes. |
See field support for supported message fields.