Jump to content

What are the appropriate headers for PHP mail so I don't get BLOCKED?


chantown

Recommended Posts

getting bouncd is more an issue of shared servers being blacklisted from neighbor spam than headers, but those look good.

 

I know this works on a non blacklisted server getting into aol which seems to be the hardest one to get in

<?php
$domain = "mysite.com";
$subject = "";
$headers = "From: <webmaster@".$domain.">\r\n";
$headers .= "Reply-To: webmaster@".$domain."\r\n";
$headers .= "Return-Path: webmaster@".$domain."\r\n";
$headers .= "BCC: webmaster@".$domain."\r\n";
$headers .= "X-Mailer: PHP/" . phpversion()."\r\n";
$headers .= "Content-type:text/html;charset=iso-8859-1\r\n";
$message = "
	";
mail($values['email'],$subject,$message,$headers);
?>

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.