cloudflare-email-service

Send transactional emails and route inbound messages via Cloudflare Workers.

1|Updated Apr 6, 2025
One-click install
npx skills add https://github.com/david-driscoll/stargate-command-cluster --skill cloudflare-email-service-david-driscoll
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: cloudflare-email-service
Source: https://github.com/david-driscoll/stargate-command-cluster/tree/main/.agents/skills/cloudflare-email-service
Command: npx skills add https://github.com/david-driscoll/stargate-command-cluster --skill cloudflare-email-service-david-driscoll

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes references (resource) components.

What problem does it solve?

Cloudflare Email Service simplifies sending transactional emails and handling inbound email routing without manual infrastructure, while providing the configuration details that prevent common deliverability and setup failures.

Core Features & Use Cases

  • Send transactional emails from Cloudflare Workers: Use the send_email binding to send HTML/text emails from an onboarded domain.
  • Send transactional emails from external apps via REST API: Use the Email Sending REST endpoint with the correct field names and response handling.
  • Receive and route inbound email: Use a Worker's email() handler to forward, reject, reply, and parse raw MIME safely.

Quick Start

Configure your Worker with the send_email binding, ensure your sending domain is onboarded, then send a transactional message by calling env.EMAIL.send() with both html and text.

Frequently Asked Questions about cloudflare-email-service

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I send transactional email from Cloudflare Workers?

To send transactional email from Cloudflare Workers, configure the send_email binding in your Worker and call env.EMAIL.send() with both html and text content for your message. Ensure your sending domain is properly onboarded first.

Can I send email from external apps using the Cloudflare Email REST API?

Yes, you can send transactional email from external apps by using the Cloudflare Email Sending REST endpoint. You need to use the correct field names and properly handle the API responses to ensure reliable email delivery.

How do I receive and route inbound email using Cloudflare Workers?

To route inbound email with Cloudflare Workers, implement an email() handler in your Worker. This handler allows you to forward, reject, reply to, and safely parse raw MIME messages from incoming emails.

What is required to onboard a domain for Cloudflare email sending?

Onboarding a domain for Cloudflare email sending requires correct domain configuration to prevent common deliverability and setup failures. You must complete this setup before using Workers bindings or the Email Sending REST API.

What are the limitations when forwarding inbound email with Cloudflare Workers?

When forwarding inbound email with Cloudflare Workers, you must safely handle routing and forwarding constraints to avoid execution failures. Properly managing raw MIME parsing and adhering to deliverability best practices are required constraints.