Cloudflare Email Workers sending multiple replies hours after initial request

I am currently testing email workers to automatically respond to an email. It sends the subject of the email to an external api and sends the reply of the api as the response to the sender of the email. Here is the link to the code: https://pastecode.io/s/q882ceq1 It responds as expected, but the problem is that it responds again after a few minutes and again and again. Last night I got about 10 responses to my original email (about every 30 minutes to 2 hours) and I don't think it stopped yet. I don't think it is a code problem, but rather a problem with the settings.
1 Reply
gero
geroOP4d ago
bump

Did you find this page helpful?