Email Sending now in public beta
Cloudflare Email Sending is now in public beta, allowing developers to send transactional emails directly from Workers or via REST API with support for HTML, plain text, attachments, inline images, and custom headers. It integrates with Agents SDK for native email handling and joins Email Routing as part of the unified Cloudflare Email Service.
Email Sending is now in public beta. Send transactional emails directly from Workers (env.EMAIL.send()) or the REST API, with support for HTML, plain text, attachments, inline images, and custom headers. Email Sending joins Email Routing ↗ under the new Cloudflare Email Service — a single service for sending and receiving email on the Cloudflare developer platform.
Send an email from a Worker in a few lines of code:
src/index.jsjsexport 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 });
},
};src/index.tstsexport 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>;
Email Service also integrates with the Agents SDK, giving your agents a native onEmail hook to receive, process, and reply to emails. Combined with the new Email MCP server ↗ and Wrangler CLI email commands, any agent can send email regardless of where it runs.
Start sending and receiving emails from Workers and agents today. Email Sending is available on the Workers paid plan. Refer to the Email Service documentation to get started.
Source: original entry ↗
More from Cloudflare
Follow Cloudflare to get its new changes in your feed and email digest.
Cloudflare One Client for Windows hotfix - trusted certificate chains
A new GA release for Windows Cloudflare One Client is available, addressing an issue with building trusted certificate chains.
Cloudflare One Client for macOS - Trusted Certificate Chain Fix
A new GA release of the macOS Cloudflare One Client is available. This hotfix addresses an issue with building trusted certificate chains.
Cloudflare One Client for Linux
A new GA release of Cloudflare One Client for Linux is now available. This hotfix addresses an issue with building trusted certificate chains.