yahoo route my mail's to bulk folder
| From: | Ali Ashrafzadeh | Date: | Tue, 16 Mar 2004 12:39:50 +0000 |
| Subject: | yahoo route my mail's to bulk folder | ||
| Groups: | php.general | ||
| Request: | Send a blank email to php-general+get-180539@lists.php.net to get a copy of this message | ||
hi and thank's my friend's
in a web application I send mail message to members using mail() function in HTML format but yahoo
mail server route my messages to bulk folder , I want know if there is any setting requiered in my
script to send mail correctly, PHPINFO() function return
sendmail_from = me@localhost.com
sendmail_path = /usr/sbin/sendmail -t -i
Path to sendmail = /usr/sbin/sendmail -t -i
I send my mail useing function below:
please tell me if you know better method to send mime mail
function send_mail($to,$subject,$message){
$headers = "MIME-Version: 1.0\r\n";
$headers .= "Content-type: text/html; charset=windows-1256\r\n";
$headers .= "From: Me <mail@domain.com>\r\n";
$headers .= "Return-path: Me <mail@domain.com>\r\n";
$headers .= "Reply-To: Me <mail@domain.com>\r\n";
// $headers .= "Bcc: $to \r\n";
if (mail($to, $subject, $message, $headers))
print("$to Send Ok!<br>");
else
print("<b>$to Send Problem</b>!<br>");
}
best regards