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

Cloudflare Email Sending

Configure the Cloudflare Email Sending REST API adapter.

Cloudflare Email Sending logo
Cloudflare Email Sending@opencoredev/email-sdk/cloudflare
Provider docs

Options

Option Type Required Notes
apiToken string Yes Cloudflare API token with Email Sending permission.
accountId string Yes Cloudflare account ID used in the Email Sending endpoint.
baseUrl string No Defaults to https://api.cloudflare.com/client/v4.
fetch typeof fetch No Useful for tests or custom runtimes.

CLI

Cloudflare Email Sending requires a Cloudflare DNS domain onboarded to Email Service. New accounts may be limited to verified recipient addresses, and Email Sending is available on Workers Paid plans.

Cloudflare’s REST API accepts to, cc, and bcc as plain email-address strings. The adapter preserves display names for from and replyTo, and rejects named recipients before the request instead of silently dropping the names.

See field support for supported message fields.

Last updated on