The problem I'm having is with the following code and how gmail handles it.
Gmail used to handle the headers just fine, but lately, it only seems to deal withPHP Code:$myname = "Auto Responder";
$mymail = "$clientemail";
$autoresp = "$email";
$subject2 = "Hello";
$body2 = "Thank you $Name!<br>Your information has been received. We will contact you as soon as possible.";
$body2 .= "<br>If you feel the need to contact us, please call us at $phone. Visit again at: $url";
$headers2 = "MIME-Version: 1.0" . "\r\n";
$headers2 .= "Content-type: text/html; charset=iso-8859-1" . "\r\n";
$headers2 .= "From: $myname <noreply@$hostname>" . "\r\n";
$headers2 .= "Reply-To: $clientemail" . "\r\n";
mail($autoresp,$subject2,$body2,$headers2);
MIME-Version: 1.0and places the others as part of body content of the email. I don't know what changed or if my code was just faulty to begin with. I use zimbra for another email I test with and it manages all of this just fine.
Is it just gmail being more strict? Is my code faulty to begin with?



Reply With Quote
Bookmarks