Re: I have a problem In Mail Function

From: Date: Mon, 15 Mar 2004 14:50:39 +0000
Subject: Re: I have a problem In Mail Function
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-180459@lists.php.net to get a copy of this message
this is the safest method, according to me at least. second thing is: yahoo will tackle it as a spam if it has many recepients in to or cc or bcc Hope it helps Nitin ----- Original Message ----- From: "Ali Ashrafzadeh" <php@myjol.com> To: <php-general@lists.php.net> Sent: Monday, March 15, 2004 7:07 PM Subject: [PHP] I have a problem In Mail Function Hi In a web application I need to send mail for each members whith a different content . mail message must be in HTML Format and 1256 code page I call mail() functoin in a simple loop to send multiple mail message with differrent content. now I want know that is any body know better method to do it ?? but I have bigest problem when I send message to yahoo mail server ,yahoo rout my message to bulk mail and I cant solve this problem please tell me if you have know solution. my send mail is come below: 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>"); } thanks

« previous php.general (#180459) next »