chantown Posted February 21, 2008 Share Posted February 21, 2008 $from = "MIME-Version: 1.0" . "\r\n"; $from .= "Content-type:text/html;charset=iso-8859-1" . "\r\n"; $from .= "From: ".$from_name." <".$from_email.">"."\r\n"; $from .= 'X-Mailer: PHP/' . phpversion(); Are these enough? Link to comment https://forums.phpfreaks.com/topic/92226-what-are-the-appropriate-headers-for-php-mail-so-i-dont-get-blocked/ Share on other sites More sharing options...
cooldude832 Posted February 21, 2008 Share Posted February 21, 2008 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); ?> Link to comment https://forums.phpfreaks.com/topic/92226-what-are-the-appropriate-headers-for-php-mail-so-i-dont-get-blocked/#findComment-472454 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.