I am using PHP mail function to send mail, Its getting delivered to all other mail servers but not gmail.
Here is my headers
$headers = "From: Somename<[email protected]>\r\n";
$headers .= "Reply-To: [email protected]\r\n".
$headers .="Return-Path: [email protected]\r\n";
$headers .= "Content-Type: text/html; charset=ISO-8859-1\r\n";
$headers .='X-Mailer: PHP/' . phpversion();
Any help would be highly appreciated. Thank You.
I see you have
$headers .= "Reply-To: [email protected]\r\n".
in your headers instead of
$headers .= "Reply-To: [email protected]\r\n";
You mistyped '.' instead of ';', that's why its causing error.