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

Unosend

Configure the Unosend REST API adapter.

Unosend logo
Unosend@opencoredev/email-sdk/unosend
Provider docs

The Unosend adapter calls the Unosend REST API directly. It is a good fit when you want API-based transactional delivery with CC, BCC, headers, tags, and attachments, but do not need Email SDK metadata.

Before live sends

Create a server-side Unosend API key, verify the sending domain you use in from, and keep the key in UNOSEND_API_KEY. A dry run can validate the Email SDK message shape, but only a live send from your target environment proves the Unosend account and domain are ready.

Configure

Send

Unosend supports one replyTo address. The adapter rejects multiple reply-to addresses before it calls the API.

Options

Option Type Required Notes
apiKey string Yes Unosend API key.
baseUrl string No Defaults to https://api.unosend.co.
fetch typeof fetch No Useful for tests or custom runtimes.

Unosend maps CC, BCC, one reply-to address, headers, tags, and Base64 attachments. metadata is not part of Unosend’s send endpoint, so the adapter rejects metadata before the request instead of silently dropping it.

Response

The adapter maps the Unosend email ID to id and messageId, and keeps the provider response in raw.

CLI smoke test

Last updated on