Onaquest
Onaquest
CDCloudflare Developers
Created by Onaquest on 10/14/2024 in #general-help
Which tools should I use to send an email via a form with cloudflare and sendgrid?
I have been tring to send emails from a form using sendgrid and cloudflare. At first, I had tried to do this without cloudflare workers. I could do it on a localhost, but on a cloudhost hosted page, I got a 405 error, and was recommended to this page https://developers.cloudflare.com/pages/functions/ I have been trying to use cloudflare workers, but I have been really thrown off on where to go from here. Should I be using something like the runtime api for email workers, https://developers.cloudflare.com/email-routing/email-workers/runtime-api/ I am pretty sure it's that, but is the fetch api relevant? https://developers.cloudflare.com/workers/runtime-apis/handlers/fetch/ and with sendgrid, would it be better to use the mailsend api "https://api.sendgrid.com/v3/" https://www.twilio.com/docs/sendgrid/api-reference/mail-send or the mail api for node.js https://www.twilio.com/docs/sendgrid/for-developers/sending-email/quickstart-nodejs or am I completely wrong where I am looking? I guess the question is with what tool should I use to send an email via a form?
2 replies