I have a contact form. It works fine on 1 of the 2 servers I use. But not on the second one. And the second one is the one I want to keep in the end. Of course... How can that be? I tried to switch the php versions but still no change. At the moment: 7.2.12
Thanks for help.
<?php
if (isset($_POST['submit'])) {
$name = $_POST['name'];
$mailFrom = $_POST['email'];
$message = $_POST['message'];
$mailTo="john.doe@example.com";
$subject="Message Sent From a Pilgrim Diaries User.";
$txt = "name: ".$name."\n"."Email: ".$mailFrom."\n"."sent the following: "."\n\n".$message;
$headers= "From: ".$mailFrom;
mail($mailTo, $subject, $txt, $headers);
header("Location: index.html?Mailsend");
}
?>
Here is a screen capture of my settings: