---
title: "How to send email from a Cloudflare Worker in 2026 | sendmcp"
url: https://sendmcp.dev/send-email-from-cloudflare-workers/
description: "Send email from a Cloudflare Worker with the Email Sending binding, or through sendmcp for API keys, templates, webhooks, logs and the Resend SDK."
---

[Features](https://sendmcp.dev/features/) · Cloudflare Workers

# How do I send email from a Cloudflare Worker?

Use Cloudflare Email Sending: on Workers Paid ($5 a month, 3,000 emails included, then $0.35 per 1,000) a Worker sends through a `send_email` binding. The binding sends one message and nothing else. sendmcp is an open source Worker on your own account that adds an HTTP API with keys, templates, webhooks, logs and suppression, and accepts Resend SDK calls.

Updated Nov 23, 2026 · Open source, [runs on your Cloudflare account](https://sendmcp.dev/#pricing)

Agent

My Worker needs to send password resets from acme.com. Set it up.

Done. acme.com is verified, and your Worker has a **SENDMCP_KEY** secret. The reset email is a template, so the Worker passes only the link.

What I set up

**Domain acme.com** SPF, DKIM, DMARC written and verified

 pass

**Template password-reset** HTML and plain text, {{link}} variable

 saved

**Secret SENDMCP_KEY** scoped to acme.com, send only

 set

**Test send** delivered to your inbox in 1.6 s

 sent

Show the Worker code Add a webhook for bounces

## The binding or sendmcp

| | Email Sending binding | sendmcp |
| --- | --- | --- |
| Who can send | Only Workers with the binding | Any Worker, server or app over HTTP |
| Code | Cloudflare's own API | Resend SDK, or plain `fetch` |
| Keys | None, the binding is the permission | One key per project, scoped to a domain |
| Templates | Build the HTML yourself | Stored templates with variables |
| Bounces | Event types to handle yourself | Suppression list, webhooks, `bounce_explain` |
| Logs | Workers logs | Every email in your D1, searchable by your agent |
| Price | Workers Paid | Workers Paid; sendmcp is free |

If one Worker sends one kind of email, the binding is enough. sendmcp is for several projects, or for code that already uses Resend.

## Send with the binding

# wrangler.toml [[send_email]] name = "EMAIL" // worker.ts await env.EMAIL.send({ from: "hi@acme.com", to: user.email, subject: "Reset your password", html: `<a href="${link}">Reset</a>`, })

## Send through sendmcp

// any Worker or Node app, with the Resend SDK import { Resend } from "resend" const resend = new Resend(env.SENDMCP_KEY) // RESEND_BASE_URL=https://mail.acme.com await resend.emails.send({ from: "hi@acme.com", to: user.email, template: "password-reset", data: { link }, })

## Limits to know

- Transactional email only: Cloudflare does not allow newsletters or marketing.
- 30 sending domains per zone, and a daily quota per account that grows with history.
- Email Sending has been in public beta since April 2026; SMTP arrived in June 2026.

Numbers from the [Cloudflare Email Service docs](https://developers.cloudflare.com/email-service/), checked Nov 23, 2026.

## Questions about this

### Do I need Workers Paid to send email?

Yes. Email Sending to any address needs Workers Paid at $5 a month, which includes 3,000 emails. On the free plan, Workers can only send to verified addresses through Email Routing.

### Can I send email from a Worker with SMTP?

Workers cannot open raw SMTP connections to most mail servers. Cloudflare added SMTP to Email Sending in June 2026 for apps outside Workers; inside a Worker, use the binding or the sendmcp HTTP API.

### Can I use the Resend SDK inside a Worker?

Yes. The Resend SDK runs in Workers. Point it at your sendmcp URL and it sends through your own Cloudflare account.

### How do I handle bounces from a Worker?

sendmcp records each bounce, adds hard bounces to suppression and calls your webhook. Your agent can explain any bounce with `bounce_explain`.

## Related questions

### How do I set up SPF, DKIM and DMARC on Cloudflare?

Your agent writes all three records to your zone and checks alignment on a test send.

[How do I set up SPF, DKIM and DMARC on Cloudflare?](https://sendmcp.dev/spf-dkim-dmarc-cloudflare/)

### Can I keep the Resend SDK and switch the provider?

One env var per project. Sends, batches, domains and webhooks answer the same calls.

[Can I keep the Resend SDK and switch the provider?](https://sendmcp.dev/resend-compatible-api/)

### Cloudflare Email Sending vs sendmcp

Same email, same price. What the Worker in front adds, and when you don't need it.

[Cloudflare Email Sending vs sendmcp](https://sendmcp.dev/vs/cloudflare-email-service/)

## Send from every project for $0.

Open source. One click puts it on your Cloudflare account.

[Deploy to Cloudflare](https://deploy.workers.cloudflare.com/?url=https://github.com/agentfirsthq/sendmcp)
