PHP Mail function()

Does Cloudflare pages support the PHP mail function? If I host my static website assets on cloudflare pages , will my contact form with form (action = mailto:[email protected] method=post) will work or not. Overall, does cloudflare pages support php mail function or not?

Cloudflare Pages won’t run php at all, which is your first problem. It wouldn’t support Mail either, as there’s no local mail server/mail transfer agent or anything like that.

If you use action with a mailto, I believe that just pops up in the default email client, which wouldn’t use PHP at all/anything server-side.

1 Like