© 2026 Hedgehog Software, LLC

TwitterGitHubDiscord
More
CommunitiesDocsAboutTermsPrivacy
Search
Star
Setup for Free
Cloudflare DevelopersCD
Cloudflare Developers•2y ago•
3 replies
blindChicken

Can't send email from a worker.

I'm trying to send emails from a worker, I'm following the example in the docs, but I can't get it to work and I don't understand so parts of the code. I'm following the example here:
https://developers.cloudflare.com/email-routing/email-workers/send-email-workers/

The my main issue right now is this:
try {
     await env.SEB.send(message);
   } catch (e) {
     return new Response(e.message);
   }
try {
     await env.SEB.send(message);
   } catch (e) {
     return new Response(e.message);
   }

What is
SEB
SEB
and where does it come from? I assume it stands for Send Email Binding. But when I replace it with the binding defined in my
wrangler.toml
wrangler.toml
it throws a
not a function
not a function
error, which is not a surprise as the binding is just object of strings.

The other examples provided in the docs, all start from message object, and simply reply or forward it. Where is message object created and then sent?
Cloudflare Docs
Send emails from Workers · Cloudflare Email Routing docs
You can send an email about your Worker’s activity from your Worker to an email address verified on Email Routing. This is useful for when you want to …
Send emails from Workers · Cloudflare Email Routing docs
Cloudflare Developers banner
Cloudflare DevelopersJoin
Welcome to the official Cloudflare Developers server. Here you can ask for help and stay updated with the latest news
85,042Members
Resources

Similar Threads

Was this page helpful?
Recent Announcements

Similar Threads

email worker `send to a worker` - can I select a specific path?
Cloudflare DevelopersCDCloudflare Developers / workers-and-pages-help
14mo ago
Email workers send email
Cloudflare DevelopersCDCloudflare Developers / workers-and-pages-help
2y ago
Use Workers function to receive email from Email worker, and send email via Postmark?
Cloudflare DevelopersCDCloudflare Developers / workers-and-pages-help
3y ago
Developing worker to send email locally
Cloudflare DevelopersCDCloudflare Developers / workers-and-pages-help
2y ago