Re: [PHP] I have a problem In Mail Function

2004-03-15 Thread Nitin Mehta
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 [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
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 [EMAIL PROTECTED]\r\n;
  $headers .= Return-path: Me [EMAIL PROTECTED]\r\n;
  $headers .= Reply-To: Me [EMAIL PROTECTED]\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

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



RE: [PHP] I have a problem In Mail Function

2004-03-15 Thread Sam Masiello

This doesn't sound like it has anything to do with the mail function.
It appears that your newsletter is getting caught by their spam filters.

--Sam


PHP wrote:
 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 [EMAIL PROTECTED]\r\n;
   $headers .= Return-path: Me [EMAIL PROTECTED]\r\n;
   $headers .= Reply-To: Me [EMAIL PROTECTED]\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

--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php