© 2026 Hedgehog Software, LLC

TwitterGitHubDiscord
More
CommunitiesDocsAboutTermsPrivacy
Search
Star
Setup for Free
Cloudflare DevelopersCD
Cloudflare Developers•2y ago•
1 reply
peepo

MailChannels Pages Plugin Issue with Next.JS 14

I've got a CloudFlare Pages project up, and I've set up all of my DNS records in Cloudflare for the Domain Lockdown, SPF, and DKIM according to the documentation: https://developers.cloudflare.com/pages/functions/plugins/mailchannels/ I've got my /functions/_middleware.ts file copied and pasted from the documentation's personalization example and hardcoded the emails, and I've added the data-static-form-name attribute to my form.

When I submit the form and check the logs, I only see get requests with 200 response codes, but I don't see any post request and I don't receive an email. Has anyone else run into this?
Cloudflare Docs
MailChannels · Cloudflare Pages docs
The MailChannels Pages Plugin intercepts all form submissions made which have the data-static-form-name attribute set. Then, it emails these form …
MailChannels · Cloudflare Pages docs
Cloudflare Developers banner
Cloudflare DevelopersJoin
Welcome to the official Cloudflare Developers server. Here you can ask for help and stay updated with the latest news
85,042Members
Resources

Similar Threads

Was this page helpful?
Recent Announcements

Similar Threads

Could not resolve "@cloudflare/pages-plugin-mailchannels"
Cloudflare DevelopersCDCloudflare Developers / workers-and-pages-help
3y ago
"Could not send your email. Please try again." with MailChannels Pages Plugin
Cloudflare DevelopersCDCloudflare Developers / workers-and-pages-help
3y ago
Next 14 on Pages stopped working.
Cloudflare DevelopersCDCloudflare Developers / workers-and-pages-help
5mo ago
Attachments with Mailchannels
Cloudflare DevelopersCDCloudflare Developers / workers-and-pages-help
2y ago