Quollveth Usernames
Quollveth Usernames
CDCloudflare Developers
Created by Quollveth Usernames on 10/26/2024 in #workers-help
email worker example not working
im trying to make a email worker to handle a contact form, i tried deploying the example worker from the email workers page but it doesnt work and gives a js runtime error Cannot read properties of undefined (reading 'send') im using the example from here https://developers.cloudflare.com/email-routing/email-workers/send-email-workers/ i have modified the sender and recipient emails to be one from my domain with email routing active i have added the node js compat flag needed by mimetext and deployed via wrangler from local development it deploys with no errors but doesn't work when accessed, be it via the browser or by sending a POST directly to the worker via curl, i only get the error as a response
13 replies