RE: [PHP] Mailing to numerous with mail()

2002-04-24 Thread Kris Vose

Do this:
 
$to = [EMAIL PROTECTED], [EMAIL PROTECTED], jonmundur@ mail.is;
 
 
-Original Message-
From: David Orn Johannsson [mailto:[EMAIL PROTECTED]] 
Sent: Wednesday, April 24, 2002 10:31 AM
To: [EMAIL PROTECTED]
Subject: [PHP] Mailing to numerous with mail()
 
I'm trying to send an email useing mutible email addresses, could any one tell me why 
this isn't working, it works when I only use one address ($to = [EMAIL PROTECTED] 
mailto:[EMAIL PROTECTED] ) 
but not when I use the following code.


 
$to  = [EMAIL PROTECTED],  ;
$to .= [EMAIL PROTECTED] . ,  ;
$to .= jonmundur@ mail.is;
 
$subject = Subject;
$body = Body;

mail($to, $subject, $body, From: [EMAIL PROTECTED] );
 
http://www.atom.is/ 
Davíð Örn Jóhannssson
Vefforritari

Atómstöðin hf.
Garðastræti 37
101 Reykjavík

sími: 595-3643
fax: 595-3649
[EMAIL PROTECTED] mailto:[EMAIL PROTECTED] 
http://www.atom.is http://www.atom.is/ 


 



Re: [PHP] Mailing to numerous with mail()

2002-04-24 Thread Miguel Cruz

On Wed, 24 Apr 2002, David Orn Johannsson wrote:
 I’m trying to send an email useing mutible email addresses, could any
 one tell me why this isn’t working, it works when I only use one address
 ($to = [EMAIL PROTECTED]) 
 but not when I use the following code.
 
 
  
 $to  = [EMAIL PROTECTED],  ;
 $to .= [EMAIL PROTECTED] . ,  ;
 $to .= jonmundur@ mail.is;
  
 $subject = Subject”;
 $body = Body”;
 
 mail($to, $subject, $body, From: [EMAIL PROTECTED] );

I believe you have to call mail() once for each addressee.

miguel


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