Practical use for email workers?

Playing around with the otherwise very clever and useful email routing system, I noticed there is something called email workers. I’m trying to understand, out of interest, what would be examples of practical use for this?

The documentation shows an example of a simple email block list, but what else could it be used for? I’m just curious, I must be missing something.

Of course I searched the general internet incl. Youtube and Reddit, but nothing useful comes up.

The possibilities are endless. There’s no requirement to forward the email at all, you can process it entirely locally.

One of the most helpful/asked for use cases is that you can use Email Workers to forward to multiple destinations.

Cloudflare is using it for their new DMARC offering built right into the dashboard, using Email Workers to receive, and process, dmarc reports:

You can build a temp email service:

Cloudflare partners with MailChannels, allowing you to send out email for free from workers:
https://blog.cloudflare.com/sending-email-from-workers-with-mailchannels/
So you could make something to receive and send back email, or anything like that.

You could forward received emails to webhooks like Discord:
https://github.com/webbertakken/email-worker https://github.com/Tyler-OBrien/cloudflare-worker-emails-to-discord

You can use Cloudflare’s other features for processing, like using Queues for processing, R2 for storing, etc

Thanks! Yes I can se how for example the anonymous mail service could be useful.

1 Like