I have a problem In Mail Function
| From: | PHP | Date: | Tue, 16 Mar 2004 06:43:00 +0000 |
| Subject: | I have a problem In Mail Function | ||
| Groups: | php.general | ||
| Request: | Send a blank email to php-general+get-180488@lists.php.net to get a copy of this message | ||
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