I have now tried two different forms, both use php and use SMTP to send emails. Both behave the same, when cloudflare is active neither will submit a form, but both ok with cloudflare turned off.
What steps have you taken to resolve the issue?
Used another form that still gives the issue. This is a trial licence form for testing.
The issue arises because the PHP script might be trying to send emails through an SMTP server that is proxied by Cloudflare. This creates a conflict because Cloudflare’s proxy doesn’t support direct SMTP traffic.
May I ask how did you coded the php script to execute?
May I ask if you’re serving both web and email from the same server?
If so, make sure to add MX record which points to an unproxied DNS record A mail pointed to your origin IP 1.2.3.4 (DNS-only) - might have to add A mail as well.
Code your PHP script, use PHPMailer and make sure you connect to mail.yourdomain.com with credentials over SSL if possible.
Otherwise, if using WordPress, WP Mail SMTP plugin would help.
Nevertheless, you can connect and use 3rd-party email service if you’re having such setup, e.g. web server is on GoDaddy but email is from XYZ Hosting provider or some cPanel
I am using html website, the email is hosted on same account as the website with EUKHOST. I will check the DNS, That has webmail as an A record and the mail as a CNAME record. Both proxied.
From the screenshot, remove CNAME mail.
Add A mail pointed to the IP address and unproxied (DNS-only).
Double-check if MX record uses mail.yourdomain.com.
And this is a solution for you if you’re also using mail.domain.com which currently from the screenshot is proxied in your email client such as MS Outlook, etc., you would also experience issues with sending and receiving emails.
Helpful article how to configure email related DNS records and make sure it works while using Cloudflare for your domain: