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:
What is
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?
https://developers.cloudflare.com/email-routing/email-workers/send-email-workers/
The my main issue right now is this:
What is
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 it throws a 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
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 …
