"email to websiteemails@[mydomain.xyz] not allowed"
Hi, so I'm trying to set up a contact form for my website using workers, i'm trying to send the email to
websiteemails@[mydomain.xyz]
, it's throwing this exception:
is it just not possible? I have the email added to account's destination addresses, I don't see why it's failing4 Replies
i'm so tired right now sorry if this is incoherent
code is viewable at https://github.com/Vresod/cloudflare-contactme-worker/blob/d8bd415a9155cb57af9208a2986bb9b54befe42c/src/index.js
Are you trying to use the Mailchannels integration? If so, I believe that was deprecated and then turned off in June. You'll need to sign up with a provider like AWS SES, Sendgrid, Resend, etc.
I was trying to use cloudflare's builtin method as detailed in https://developers.cloudflare.com/email-routing/email-workers/send-email-workers
Cloudflare Docs
Send emails from Workers | Cloudflare Email Routing 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 know about certain types of events being triggered, for example.
I ended up pivoting to resend which is fine, but i wasn't trying to use an outside service for this. It is what it is I suppose ¯\_(ツ)_/¯
I still think this issue should be looked into as 1-I think someone else building something similar could run into the same issue and 2-I like the cloudflare solution than using an outside service