ClaudeCloudflare Developer PlatformApr 16, 2026, 12:00 AM

Email Service - Email Sending now in public beta

A condensed section focused on the key takeaways first.

Original Post

Quick Digest

Summary

A condensed section focused on the key takeaways first.

claudeenmodel: claude-haiku-4-5

Email Sending now in public beta

Key Points

  • Email Sending public beta launch
  • Native Workers and REST API integration
  • Agents SDK support with email hooks

Summary

Cloudflare Email Sending is now available in public beta as part of the new Cloudflare Email Service. Send transactional emails directly from Workers using env.EMAIL.send() or via REST API with full support for HTML, plain text, attachments, inline images, and custom headers.

Key Points

  • Send emails directly from Workers with a simple API call or use the REST API
  • Support for HTML, plain text, attachments, inline images, and custom headers
  • Integrates with Agents SDK with native onEmail hook for receiving, processing, and replying to emails
  • Email MCP server and Wrangler CLI email commands enable agents to send email from any runtime
  • Available on the Workers paid plan
  • Combines with Email Routing under unified Cloudflare Email Service for sending and receiving

Full Translation

Translations

A translation section that keeps the flow of the original article.

claudejamodel: claude-haiku-4-5

メールサービス - メール送信がパブリックベータで利用可能に

メール送信がパブリックベータで利用可能に

2026年4月16日 | メールサービス

メール送信がパブリックベータで利用可能になりました。Workers(env.EMAIL.send())またはREST APIから直接トランザクショナルメールを送信でき、HTML、プレーンテキスト、添付ファイル、インライン画像、カスタムヘッダーに対応しています。

メール送信は、Email Routing ↗ と共に新しい Cloudflare Email Service の一部となり、Cloudflare 開発者プラットフォーム上でメールの送受信を行うための統一されたサービスを提供します。

Worker からメールを送信する

数行のコードで Worker からメールを送信できます:

JavaScript

// src/index.js
export default {
  async fetch(request, env) {
    const response = await env.EMAIL.send({
      from: "notifications@yourdomain.com",
      to: "user@example.com",
      subject: "Order confirmed",
      html: "<h1>Your order has been confirmed</h1>",
      text: "Your order has been confirmed.",
    });
    return Response.json({ messageId: response.messageId });
  },
};

TypeScript

// src/index.ts
export default {
  async fetch(request, env): Promise<Response> {
    const response = await env.EMAIL.send({
      from: "notifications@yourdomain.com",
      to: "user@example.com",
      subject: "Order confirmed",
      html: "<h1>Your order has been confirmed</h1>",
      text: "Your order has been confirmed.",
    });
    return Response.json({ messageId: response.messageId });
  },
} satisfies ExportedHandler<Env>;

Agents SDK との統合

Email Service は Agents SDK と統合され、エージェントがメールを受信、処理、返信するためのネイティブな onEmail フックを提供します。新しい Email MCP server ↗ と Wrangler CLI メールコマンドと組み合わせることで、どこで実行されるエージェントでもメール送信が可能になります。

開始方法

Workers とエージェントからメールの送受信を今すぐ開始できます。メール送信は Workers 有料プランで利用可能です。詳細は Email Service ドキュメントを参照してください。