Email Service

Email for applications, workflows, and agents

Cloudflare Email Service gives your applications and agents a native way to send transactional email, receive inbound messages, and automate workflows on a global network.
Built for Agents

Give agents a real inbox and the ability to send, receive and reply without stitching together third-party tools.

Programmable by default

Route inbound email to Workers, process with AI, store attachments, and trigger workflows with code

One platform, bidirectional email

Combine email routing and email sending to handle the full email lifecycle on one platform. 

A few lines of code. Global email delivery.

Use Email Sending for outbound delivery and Email Routing for inbound handling, all from the same Workers application.

Background Pattern

Email for agents

You can use Email Service to:

View docs

Send from Workers

Trigger transactional and workflow email directly from application logic.

Route inbound email

Receive mail on your domain and hand it to Workers for processing.

Enrich and orchestrate

Classify content with AI, store attachments, and fan out async work with Queues.

Reply or escalate

Respond automatically, update state, or hand off to downstream systems and humans.
Background Pattern
export default {
  async fetch(request, env) {
    await env.SEND_EMAIL.send({
      to: [{ email: "user@example.com" }],
      from: { email: "notifications@your-domain.com", name: "Your App" },
      subject: "Your order has shipped",
      text: "Your order #1234 has shipped and is on its way."
    });

    return new Response("Email sent");
  },
};

Build without boundaries

Join thousands of developers who've eliminated infrastructure complexity and deployed globally with Cloudflare. Start building for free — no credit card required.