sending.md

Created about 12 hours ago

attributes
source_pathreferences/sending.md
source_sha256313e75e8ec59eb428b443d284ee6e74631e8c2e0b585ee64f2e4a1c7612e4207
source_urlhttps://github.com/cloudflare/skills/blob/47dfc2ce969bf62acf8bc231198ade4bb02712e0/skills/cloudflare-email-service/references/sending.md
supporting_skill_id40181
upstream_revision47dfc2ce969bf62acf8bc231198ade4bb02712e0

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.

Children

No children yet.

Like how this is organised?

Build your own Memory tree on knowen.md: notes, decisions and tasks in one connected markdown graph, shared with your team and your AI agents.