A comprehensive developer guide and AI skill for configuring, sending, and routing transactional emails seamlessly using Cloudflare Email Service.
The fastest way to install a skill directly from the registry.
npx clawhub@latest install cloudflare-email-service
Copy the skill folder to one of these locations
~/.openclaw/skills/ <project>/skills/ Priority: Workspace > Local > Bundled
Copy this prompt to OpenClaw to install it automatically.
Help me install cloudflare-email-service using Clawhub. If Clawhub is not installed, install it first (npm i -g clawhub).
Get the raw skill files in a ZIP archive.
Cloudflare Email Service allows developers to send transactional emails and route incoming messages directly inside the Cloudflare ecosystem. It represents a modern, serverless approach to email, bypassing the need for third-party email APIs and complex SMTP setups. By utilizing this specialized resource within Openclaw Skills, developers and AI coding agents can quickly configure domain authentication, implement Workers bindings, and manage routing policies with zero-key authentication setups.
This skill is crucial because it accounts for the latest 2025 platform features, CLI commands, and library type definitions. Whether you are sending automated alerts from a worker, deploying AI agents that respond to user emails, or parsing incoming MIME streams, this documentation ensures your implementations adhere to Cloudflare best practices and avoid common delivery pitfalls.
send_email binding in your wrangler.jsonc file, exposing the secure env.EMAIL interface inside your environment.env.EMAIL.send() within your code, or run a REST request to dispatch transactional emails with HTML and plaintext payloads.email() handler, parsing raw MIME streams with libraries like postal-mime to execute custom routing logic.To start sending emails, first install Wrangler and verify your domain. Run the following command to check your verified domains:
npx wrangler email sending list
If your domain is not listed, enable email sending capability by executing:
npx wrangler email sending enable yourdomain.com
Next, add the email binding to your wrangler.jsonc configuration file:
{
"send_email": [
{
"name": "EMAIL"
}
]
}
Finally, implement the worker code to send an email using the established binding:
const response = await env.EMAIL.send({
to: "[email protected]",
from: { email: "[email protected]", name: "App Alerts" },
subject: "Hello from Cloudflare!",
html: "<h1>Your message has arrived</h1>",
text: "Your message has arrived."
});
Cloudflare Email Service organizes its data and payloads depending on the selected interface (Workers Binding vs. REST API). Integrating these data specifications into Openclaw Skills helps developers minimize runtime schema errors.
| Property | Type | Description | Required |
|---|---|---|---|
to |
string | string[] |
Single recipient email address or array of recipient addresses | Yes |
from |
object |
Sender details containing email (string) and optional name (string) |
Yes |
subject |
string |
The email subject line | Yes |
html |
string |
The HTML body content | No |
text |
string |
The plaintext fallback body | Yes (Recommended) |
Unlike the Workers binding, the REST API requires snake_case parameters and a slightly modified from schema:
POST https://api.cloudflare.com/client/v4/accounts/{account_id}/email/sending/send{ "address": "[email protected]", "name": "Sender" } instead of the email key.reply_to (snake_case) rather than replyTo.onEmail() and replyToEmail() helper methods.message.raw streams, transforming them into parsed objects with the postal-mime package.Loading
A powerful SDK for building secure, isolated code execution environments inside Cloudflare Workers to power AI interpreters, CI/CD pipelines, and runtime sandboxes.

A high-performance AI coding assistant skill designed to build, optimize, and test stateful, coordinated applications using Cloudflare Durable Objects.

An automated workflow skill that enables AI agents to configure Cloudflare Turnstile widgets, deploy verification Workers, and implement frontend bot protection end-to-end.

An open-source, local-first market basket analysis tool designed to extract product association rules and business strategy recommendations from Excel data using the Apriori algorithm.

A powerful agent skill for building and deploying stateful, durable AI agents, WebSocket-enabled applications, and background workflows on Cloudflare Workers.

An automated AI-powered arXiv academic paper collector and daily digest system designed specifically for Obsidian vaults on Windows.








































