On Tuesday 04 March 2003 21:13, Patrick Schnegg wrote:
> The mail() function will only send one mail at a time, to send multiple
> mails you would write a loop like this (presuming you had your mail
> addresses ready in an array called $emails):
>
> foreach ($emails as $email) {
>     mail($email, "your subject", "your message");
> }
>
> "Denis L. Menezes" <[EMAIL PROTECTED]> wrote in message
> news:[EMAIL PROTECTED]
> Hello friends,
>
> Can the mail() function send emails to multiple addresses which are
> formatted as follows :
>
> [EMAIL PROTECTED],[EMAIL PROTECTED],[EMAIL PROTECTED] etc with a
> comma or a semicolon between them?

Denis, Patrick, both of you take a look at the example in the manual.

-- 
Jason Wong -> Gremlins Associates -> www.gremlins.biz
Open Source Software Systems Integrators
* Web Design & Hosting * Internet & Intranet Applications Development *
------------------------------------------
Search the list archives before you post
http://marc.theaimsgroup.com/?l=php-general
------------------------------------------
/*
Having the fewest wants, I am nearest to the gods.
                -- Socrates
*/


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

Reply via email to