All skills
cloudflare avatar

/cloudflare-email-service

@41e0d19 official
by cloudflarecloudflare/skills3k stars
298

Implement or troubleshoot Cloudflare Email Sending and Email Routing integrations and their delivery configuration.

Use this Skill: https://skilld.dev/gh/cloudflare/skills/cloudflare-email-service

This session only. Nothing lands on disk.

referencessending.md

≈656 tokens on demand. Your agent reads this file only when SKILL.md points to it.

Sending Emails — Workers Binding & Agents SDK

Prefer the native binding for Workers. For an external application, or when the user explicitly requests HTTP integration, use the REST API guide.

Read the documentation for the selected task before implementing. Inspect the project's installed Wrangler and Agents SDK versions, configuration, and existing conventions first. Run wrangler types through the project's package manager after changing bindings; use its generated types instead of handwritten email interfaces. See Workers TypeScript for matching types to the project's compatibility date and flags. Do not upgrade dependencies just to match an example.

Task Read
Configure the binding, send a message, or maintain existing MIME-based sending Workers API
Restrict sender or destination addresses Configure send bindings
Set multiple recipients, CC/BCC, or named addresses Specify recipients
Add files, inline images, or uploaded attachments Email attachments
Set custom headers or diagnose header validation Email headers
Check recipient, message-size, or sending quotas Limits
Choose local simulation or remote delivery Local email sending
Interpret send results and binding errors Workers API response and error handling
Send, receive, route, and securely reply from an Agent Email agent walkthrough

When adapting REST code to a binding, verify address fields, attachment representation, response shape, and errors against the binding docs and generated types. Exercise the relevant success and failure paths using the project's existing checks. Confirm whether the chosen local configuration simulates delivery or sends real mail before testing.

Source: SKILL.md on GitHub

1 warning16d4 checks · Risk SAFE
  • Gen Agent Trust Hub16d

    This skill provides documentation and implementation guides for the Cloudflare Email Service. It includes security considerations regarding the handling of untrusted email data and the use of external development tools, all of which are consistent with the skill's intended purpose.

  • Socket16d

    No alerts

  • Snyk16d

    Risk: MEDIUM · 1 issue

  • ZeroLeaks5mo

    Score: 93/100 · 2 sections analyzed

Signed by skilld at 41e0d19. This ties the file your Agent reads to that commit on GitHub. It does not review the instructions.

Last checked against GitHub 10 hours ago.

Activeupdated 11 hours ago
  • Python
  • cloudflare
  • email-sending
  • email-routing
  • workers
  • transactional-email
  • rest-api
  • nodejs
  • golang

README badge

README badge for cloudflare/skills/cloudflare-email-service

Send transactional emails and route incoming messages using Cloudflare Email Service, with Workers bindings, REST API, or the Agents SDK. Use this skill for email setup, authentication (SPF/DKIM/DMARC), deliverability tuning, and integrating email into Workers, Node.js, Python, Go, or any AI coding agent.

Generated from the current SKILL.md.

Does this skill cover both sending and receiving emails?
Yes. It covers Email Sending (transactional emails via Workers binding or REST API) and Email Routing (inbound email handling with the `email()` handler). The references are split by use case.
Can I use this skill outside of Cloudflare Workers?
Yes. The REST API works from Node.js, Python, Go, or any external app. You'll need a Cloudflare API token and account ID instead of a binding.
Do I need to set up my domain before sending?
Yes. The domain must be onboarded to Email Sending first via `wrangler email sending enable yourdomain.com` or the Cloudflare Dashboard. The `from` address must use an onboarded domain.
What's the difference between the Workers binding and the REST API?
The Workers binding requires no API keys and uses camelCase field names (`email`, `replyTo`). The REST API uses snake_case (`address`, `reply_to`) and requires a Bearer token, but works outside Workers.
Can I use this for marketing emails or newsletters?
No. Email Service is for transactional emails only. Use a dedicated marketing platform for bulk sends and campaigns.

Generated from the current SKILL.md. These answers refresh after source changes.