cloudflare-email-service

Configure Cloudflare Email Service for Workers and REST API sending.

17|1|Updated Feb 2, 2024
One-click install
npx skills add https://github.com/FormalSnake/dotfiles --skill cloudflare-email-service-formalsnake
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: cloudflare-email-service
Source: https://github.com/FormalSnake/dotfiles/tree/main/users/kyandesutter/claude/skills/cloudflare-email-service
Command: npx skills add https://github.com/FormalSnake/dotfiles --skill cloudflare-email-service-formalsnake

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes references (resource) components.

What problem does it solve?

This Skill helps you correctly set up Cloudflare Email Service so you can send transactional emails and reliably handle incoming emails without misconfiguration or brittle, outdated API details.

Core Features & Use Cases

  • Workers sending via the EMAIL binding: Send transactional email from a Cloudflare Worker with required wrangler.jsonc bindings and correct request shapes.
  • REST API sending for non-Workers apps: Send transactional email from external services using API tokens with the correct field names and response semantics.
  • Email Routing for inbound handling: Implement an email() handler to forward, reply, reject, or parse incoming emails (including safe handling of single-use raw streams).
  • Deliverability and monitoring guidance: Use domain onboarding, SPF/DKIM/DMARC, suppression handling, and analytics best practices to avoid spam folders.

Quick Start

Use the cloudflare-email-service skill to configure domain onboarding and then implement Workers Email sending by adding the send_email binding and calling env.EMAIL.send with your recipient and HTML/text content.

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 a send_email binding in wrangler.jsonc and call env.EMAIL.send with recipient, HTML, and text content. This Workers binding approach ensures correct request and response handling for outbound email.

Can I send email via the Cloudflare REST API from an external app?

Yes, you can send email via the Cloudflare REST API using API tokens from external applications. You must use correct field naming conventions like address versus email and reply_to versus replyTo to ensure proper request shaping and response semantics.

How does email routing work for inbound email on Cloudflare?

Cloudflare email routing processes inbound email by implementing an email() handler to forward, reply, reject, or parse messages. You must safely handle single-use raw MIME streams when reading inbound content within your Workers environment.

What do I need to set up before sending email through Cloudflare?

Before sending email through Cloudflare, you must complete domain onboarding and configure SPF, DKIM, and DMARC authentication records. Proper wrangler binding configuration is also required for Workers-based sending.

Why are my Cloudflare transactional emails going to spam?

Cloudflare transactional emails may go to spam due to missing SPF, DKIM, or DMARC authentication records. Check domain onboarding status, review suppression lists, monitor quotas, and verify analytics to troubleshoot deliverability issues.

Does the Cloudflare email service require wrangler bindings for external REST API requests?

No, wrangler bindings are not required for external REST API requests. External applications authenticate using API tokens with correct field naming, while wrangler bindings are specifically for sending transactional email from within Cloudflare Workers.