Re: Re: mail() function

From: Date: Tue, 04 Mar 2003 13:18:18 +0000
Subject: Re: Re: mail() function
References: 1 2  Groups: php.general 
Request: Send a blank email to php-general+get-138095@lists.php.net to get a copy of this message
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" <menezesd@singnet.com.sg> wrote in message > news:002c01c2e24d$9989a890$1e02a8c0@pcdenisxp... > Hello friends, > > Can the mail() function send emails to multiple addresses which are > formatted as follows : > > person1@hotmail.com,person2@yahoo.com,person3@yahoo.com..... 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 */

« previous php.general (#138095) next »