TL;DR

Ngày 16/04/2026, Cloudflare đưa Email Service từ private beta lên public beta. Đây là nền tảng email hai chiều đầu tiên của Cloudflare: gửi transactional email trực tiếp từ Worker qua binding env.EMAIL (không API key, không secret), nhận email qua Email Routing và dispatch thẳng vào agent qua hook onEmail trong Agents SDK. Cloudflare tự ghi SPF, DKIM, DMARC vào DNS — developer không còn phải đụng tay vào authentication plumbing nữa.

Cloudflare Email Service: now in public beta. Ready for your agents

What's new

Trước đây Cloudflare chỉ có Email Routing miễn phí cho inbound — mảng outbound bị bỏ trống, developer vẫn phải dùng Resend/SendGrid/Postmark. Public beta lần này vá xong khoảng trống đó và đi xa hơn: tạo ra một platform bidirectional thiết kế riêng cho AI agent, không phải email API nhồi thêm tính năng agent.

  • Native Workers binding — gọi env.EMAIL.send(...) từ Worker, không quản lý API key.
  • REST API + SDK TypeScript, Python, Go cho workload chạy ngoài Cloudflare.
  • Agents SDK onEmail hook — mail inbound trở thành event kích hoạt agent, state giữ trong Durable Objects.
  • Agentic Inbox reference app open-source: Email Routing (in) + Email Sending (out) + Workers AI (phân loại) + R2 (attachment) + MCP (human-in-the-loop review).
  • Wrangler CLI có lệnh mới wrangler email send.
  • MCP server của Cloudflare expose Email endpoints — agent ngoài có thể discover và gọi.

Why it matters

Email vốn là giao thức async mặc định của thế giới — nhưng với chatbot thì không quan trọng, vì chatbot chỉ tồn tại khi user đang nhìn chat UI. Agent thì khác: agent chạy background, tự lên lịch, tự gọi tool, tự follow-up sau vài giờ hoặc vài ngày. Cloudflare mô tả trong bài blog: "A chatbot responds in the moment or not at all. An agent thinks, acts, and communicates on its own timeline." Email khớp với pattern đó hơn bất cứ kênh nào khác — không cần user online, có thread, có identity, có attachment, và mọi đối tác (con người hoặc hệ thống) đều hiểu được.

Với developer, điểm thực dụng hơn: cắt đứt chuỗi copy-paste DNS record giữa provider, quản lý thêm một loại API key, và tự viết logic chống spoofing header khi reply. Cloudflare bó tất cả vào một edge network cùng với Workers, R2, KV, Queues, Workers AI — một security boundary, một hoá đơn.

Technical facts

Worker binding tối giản trông như sau:

export default {
  async fetch(request, env, ctx) {
    await env.EMAIL.send({
      to: "user@example.com",
      from: "notifications@your-domain.com",
      subject: "Your order has shipped",
      text: "Your order #1234 has shipped..."
    });
    return new Response("Email sent");
  },
};

REST endpoint tương ứng: POST https://api.cloudflare.com/client/v4/accounts/{account_id}/email-service/send với Bearer API token. SMTP và framework như React Email cũng chạy được.

PropertyValue
Public beta16/04/2026
Delivery latency< 15 ms toàn cầu (Cloudflare claim)
SDK runtimesTypeScript, Python, Go, SMTP
Auth stackSPF + DKIM + DMARC tự động ghi vào DNS
Reply header protectionHMAC-SHA256 ký routing header
Agent stateDurable Objects
Inbound routingAddress-based + sub-addressing

Comparison

So sánh nhanh với các provider transactional email truyền thống:

Tiêu chíResend / SendGrid / PostmarkCloudflare Email Service
SetupCopy DNS records, quản lý API key, secretZero-config SPF/DKIM/DMARC, không API key khi dùng binding
Agent modelHTTP API genericonEmail hook + Agents SDK + Durable Object state
InboundWebhook/product riêngEmail Routing (miễn phí, cùng platform)
Infra couplingVendor rờiChung edge với Workers, R2, KV, Queues, Workers AI
Chống spoofing replyTự code ở app layerHMAC-SHA256 built-in
LatencyTuỳ region< 15 ms globally

Use cases

  • Customer support agent — inbox support@ route thẳng vào agent, phân loại bằng Workers AI, trả lời async.
  • Invoice processing — agent đọc PDF đính kèm từ R2, trích dữ liệu, trả lời xác nhận.
  • OTP / account verification — gửi mã từ Worker, verify reply tự động.
  • Multi-agent workflow — các agent giao việc qua email, hệ thống ngoài Cloudflare cũng tham gia được qua MCP.
  • Background notifications — cron job dài báo kết quả khi done, không cần giữ session.

Reference app Agentic Inbox open-source trình diễn đầy đủ các pattern trên, kèm human-in-the-loop review qua MCP trước khi agent gửi đi.

Limitations & pricing

Cloudflare chưa công bố bảng giá chính thức cho public beta. Thông báo private beta trước đó nói sẽ cần "paid Workers subscription với per-message pricing". Email Routing (inbound) vẫn miễn phí, không thay đổi limit. Vì đang beta, SLA chưa cam kết. Lưu ý: từ 30/06/2025, Email Routing đã siết SPF/DKIM/DMARC alignment — mail nguồn bẩn bị reject ngay ở inbound.

What's next

Roadmap chưa công bố chi tiết, nhưng hướng đi rõ: pricing GA, mở rộng tool cho agent ngoài Cloudflare (qua MCP và Wrangler), và community contribution cho Agentic Inbox. Cloudflare đặt email vào vị trí "a core interface for agents" — hạ tầng chứ không phải sản phẩm email đơn lẻ.

Với developer đang build agent trên Cloudflare: thử ngay wrangler email send, convert flow Resend hiện tại sang env.EMAIL.send, và thử pattern inbound bằng cách forward một địa chỉ phụ vào Worker có onEmail. Với team đang dùng Resend/Postmark/SendGrid nhưng đã ở trong hệ sinh thái Cloudflare: chi phí chuyển rẻ — cùng một binding, bỏ được 3–4 DNS record, giảm 1 vendor.

Nguồn: blog.cloudflare.com, private beta announcement, Cloudflare docs.