You can do two things..
First you can use $to = "[EMAIL PROTECTED], [EMAIL PROTECTED], [EMAIL PROTECTED]";

or you could use a loop such as for or while to mail to each address 
using a function or not whatever way you wanted to.


In article <009a01c1eb9c$9b5cf2b0$6501a8c0@gandalf>,
 [EMAIL PROTECTED] (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] ");
>  
>  <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
>  <mailto:[EMAIL PROTECTED]> [EMAIL PROTECTED]
>  <http://www.atom.is/> http://www.atom.is
> ------------------------
> 
>  
>

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

Reply via email to