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? Quote Link to comment 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); ?> Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.