I am very annoyed by this, because no matter what the spam filters seem to be, they still call the site answering machine as spam. I set all my headers correctly, and this is what I still have!
$headers = "From: Name<name@website.com>\r\n"
."Return-Path: Name<name@website.com>\r\n"
."Reply-To: Name<name@website.com>\r\n"
."Message-ID: <". time() .rand(1,1000). "@".$_SERVER['SERVER_NAME'].">\r\n"
."X-Mailer: PHP v".phpversion()."\r\n"
."MIME-Version: 1.0\r\n"
."Content-Type: text/plain; charset=iso-8859-1\r\n";
@mail($_POST['email'], "Subject", "Message", $headers);
Please help me with this! :)
This is sent from the servers of my hosting providers.
Will I help add the 5th parameter below?
"- f email@website.com "
source
share