ideffect
02-11-2006, 04:58 PM
Hello,
On my website, I have many automated e-mails containing userid's, passwords and order confirmations. The problem is many of these e-mails do not reach the sender or go into the e-mail's spam folder for yahoo and msn accounts. I have tested this over and over and the e-mails do go. Is there any solution to this? Below is the source code for the e-mails.
Thank you for your help!
//Mail Headers
$from="webmaster@test.com";
$headers = "From: $from\r\n";
$headers .= "Reply-To: $from\r\n";
$headers .= "Return-Path: $from\r\n";
$headers .= "MIME-Version: 1.0\r\n";
$headers .= "Content-type: text/html; charset=iso-8859-1\r\n";
//E-mail Info -Fictional Stuff
$email_addr="bill@hotmail.com"; //Usually grabbed from database
$subject="E-mail Subject Line";
$message="E-mail Content Goes Right Here...";
//Mail Function
mail($email_addr, $subject, $message, $headers,"-f $from");
//I think that's all.
On my website, I have many automated e-mails containing userid's, passwords and order confirmations. The problem is many of these e-mails do not reach the sender or go into the e-mail's spam folder for yahoo and msn accounts. I have tested this over and over and the e-mails do go. Is there any solution to this? Below is the source code for the e-mails.
Thank you for your help!
//Mail Headers
$from="webmaster@test.com";
$headers = "From: $from\r\n";
$headers .= "Reply-To: $from\r\n";
$headers .= "Return-Path: $from\r\n";
$headers .= "MIME-Version: 1.0\r\n";
$headers .= "Content-type: text/html; charset=iso-8859-1\r\n";
//E-mail Info -Fictional Stuff
$email_addr="bill@hotmail.com"; //Usually grabbed from database
$subject="E-mail Subject Line";
$message="E-mail Content Goes Right Here...";
//Mail Function
mail($email_addr, $subject, $message, $headers,"-f $from");
//I think that's all.