Re: Mailing to numerous with mail()
| From: | Smileyq | Date: | Thu, 25 Apr 2002 00:34:24 +0000 |
| Subject: | Re: Mailing to numerous with mail() | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-94484@lists.php.net to get a copy of this message | ||
You can do two things..
First you can use $to = "elin@mail.is, david@atom.is, jonmundur@mail.is";
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>,
david@atom.is (David Orn Johannsson) wrote:
> Im trying to send an email useing mutible email addresses, could any
> one tell me why this isnt working, it works when I only use one address
> ($to = david@atom.is)
> but not when I use the following code.
>
>
>
> $to = "elin@mail.is", " ;
> $to .= "david@atom.is" . ", " ;
> $to .= "jonmundur@ mail.is";
>
> $subject = "Subject;
> $body = "Body;
>
> mail($to, $subject, $body, "From: mail@mail.is ");
>
> <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:david@atom.is> david@atom.is
> <http://www.atom.is/>
> http://www.atom.is
> ------------------------
>
>
>