Mailing from worker

For Workes & Pages, what is the name of the domain?

local

What is the issue or error you’re encountering

X [ERROR] Failed to build

What steps have you taken to resolve the issue?

I read this page Enable Email Workers · Cloudflare Email Routing docs and can non found Email setting “Go to Email > Email Routing > Email Workers.” in Cloudflare panel.
Also I found this page - Send emails from Workers · Cloudflare Email Routing docs - is it working? What I need to set up to allow this function?
Where is page to verify Email address? I can not found it in Cloudflare panel.
Alternatively I have access to external mail server, but Nodemailer not working with Cloudflare. Some peoples said that is exist setting ‘Node-compability’ for worker. I try to add this setting to TOML setting file, but nothing changing - Nodemailer still not compiled with worker.
So, how I can send mail from Cloudflare Worker?

You might want to take a look at this here:

I would also recommend that you check on the Cloudflare Discord to see if there are any libraries that you can use for this.

Thanks, @Laudian , I understand that embedded Cloudflare mailing not working now.

But how about another way? Can I use Nodemailer, @getbrevo/brevo or other packages? It not compiled with Worker, all mailer packages compatible with Node.Js and require and require support a lot of special Node features:

And, unfortunately, Discord way to communicate with Cloudflare support is dead. Nobody answered to developers during many days.

I’m sorry, but I don’t know. You will definitely need to use an Email Service with an HTTPS API. There’s probably no need to use a dedicated library, as it is just a single request you need to implement.

1 Like