lckillah
CDCloudflare Developers
•Created by lckillah on 4/10/2024 in #workers-help
mailchannels and static forms
Would probably be easier to see if I just paste the code here
4 replies
CDCloudflare Developers
•Created by lckillah on 4/10/2024 in #workers-help
mailchannels and static forms
4 replies
CDCloudflare Developers
•Created by lckillah on 4/8/2024 in #workers-help
Mailchannels Issues
Still new to this and have read a lot of documentations so bear with me if I give you the wrong information. From my understanding, you need to have a domain to use mailchannels API. I think it's because email servers check for the domain. Again, not sure. But have you tested it and tried it out? The documentations that I've read says you need to have a domain but I could be wrong
70 replies
CDCloudflare Developers
•Created by lckillah on 4/8/2024 in #workers-help
Mailchannels Issues
looking at the static forms documentation, the script looks very similar to mailchannels plugin
import staticFormsPlugin from "@cloudflare/pages-plugin-static-forms";
export const onRequest: PagesFunction = staticFormsPlugin({
respondWith: ({ formData, name }) => {
const email = formData.get('email')
return new Response(
Hello, ${email}! Thank you for submitting the ${name} form.
)
}
});
I can probably just use that to combine with my _middleware.ts and don't have to import the staticFormsPlugin since it uses the same thing right?70 replies
CDCloudflare Developers
•Created by lckillah on 4/8/2024 in #workers-help
Mailchannels Issues
ohhhh gotcha. Still new to this so thank you for your patience and your help! Gonna find and read some documentations about static form plugin and see what I can do
70 replies
CDCloudflare Developers
•Created by lckillah on 4/8/2024 in #workers-help
Mailchannels Issues
Oh so I have to create a worker then with fetch after all?
70 replies
CDCloudflare Developers
•Created by lckillah on 4/8/2024 in #workers-help
Mailchannels Issues
Actually, one more question. So I got it to work using the pages function (by creating a simple html contact file and then putting my _middleware.ts inside the functions folder). But I want to capture my contact form and put the email of the form in the reply to and possibly the name in the subject field. I saw this static form plugin but not sure if that's what I need for my use case https://developers.cloudflare.com/pages/functions/plugins/static-forms/
70 replies
CDCloudflare Developers
•Created by lckillah on 4/8/2024 in #workers-help
Mailchannels Issues
Thank you SOOOO much for the help! You were a tremendous help.
70 replies
CDCloudflare Developers
•Created by lckillah on 4/8/2024 in #workers-help
Mailchannels Issues
I actually got it to work now! The private key weren't matching because when I first started reading documentations, it says to generate private key. And since I am new to this, I thought I can just run it using terminal. Turns our everything has to be ran from your projects.
70 replies
CDCloudflare Developers
•Created by lckillah on 4/8/2024 in #workers-help
Mailchannels Issues
Also gonna add, I am using google workspaces custom email that is set up through my domain godaddy. Not sure if that adds anything to the equation.
70 replies
CDCloudflare Developers
•Created by lckillah on 4/8/2024 in #workers-help
Mailchannels Issues
70 replies
CDCloudflare Developers
•Created by lckillah on 4/8/2024 in #workers-help
Mailchannels Issues
Dang I can't believe that's what I was missing. Thanks! Now to troubleshoot why the contact form still isn't sending lol
70 replies
CDCloudflare Developers
•Created by lckillah on 4/8/2024 in #workers-help
Mailchannels Issues
70 replies
CDCloudflare Developers
•Created by lckillah on 4/8/2024 in #workers-help
Mailchannels Issues
Oh that makes a lot of sense then. I'll try to deploy using either of those and will report back. I'd rather use the page functions so I'll give that a try
70 replies
CDCloudflare Developers
•Created by lckillah on 4/8/2024 in #workers-help
Mailchannels Issues
Hey Chaika. Via drag and drop. Just now getting to this
70 replies
CDCloudflare Developers
•Created by lckillah on 4/8/2024 in #workers-help
Mailchannels Issues
70 replies
CDCloudflare Developers
•Created by lckillah on 4/8/2024 in #workers-help
Mailchannels Issues
I made sure to turn off my adguard and still getting We could not find that Workers Service on your account. (Code: 8000068) when I click begin stream on the dashboard for the debug...
70 replies
CDCloudflare Developers
•Created by lckillah on 4/8/2024 in #workers-help
Mailchannels Issues
Would you recommend going the functions instead of creating a worker for the email?
70 replies
CDCloudflare Developers
•Created by lckillah on 4/8/2024 in #workers-help
Mailchannels Issues
Got it. Awesome will review and make these changes later as soon as I get the chance and will report back. I have to start my day job for the time being haha. Thank you!
70 replies
CDCloudflare Developers
•Created by lckillah on 4/8/2024 in #workers-help
Mailchannels Issues
Oh I meant you said to enable it haha
70 replies