This issue is not PHP related.
Most likely the server is blocking sending via SMTP.
I get result after send my form:
{
“result”:“success”,
“resultfile”:null,
“status”:[“Sending with mail()”,"Sendmail path: /usr/sbin/sendmail -t -i ",“Envelope sender: [email protected]”,“To: [email protected]”,“Subject: =?UTF-8?B?0J7RgNCz0LDQvdCw0LnQt9C10YDRiyA2NDAg0LPRgNC9?=”,“Headers: Date: Tue, 20 Jul 2021 14:22:57 +0000\nTo: [email protected], \nFrom: rogatka \nSubject: =?UTF-8?B?0J7RgNCz0LDQvdCw0LnQt9C10YDRiyA2NDAg0LPRgNC9?=\nMessage-ID: \nX-Mailer: PHPMailer 6.5.0 (https://github.com/PHPMailer/PHPMailer)\nMIME-Version: 1.0\nContent-Type: text/html; charset=UTF-8\nContent-Transfer-Encoding: 8bit\n\n”,“Additional params: [email protected]”,
“Result: true”]
}
This has nothing to do with Cloudflare. Cloudflare is not involved with your email connections, other than the DNS records that point to a third party provider (privateemail).
Cloudflare can block port 465 for example.
DNS settings are correct.
The mail server works fine.
SMTP settings are correct.
Form works well on local host but does not work on hosting.
I’ve tried sending via PHPmail () and via SMTP. There are no errors, but nothing is sent to the mail, although everything works on the local server…