Page 1 of 1

php mail sending to multiple address

Posted: Mon Jun 20, 2005 12:58 pm
by lamia
Hi, I'd like to ask what's the best way to send an e-mail to multiple addresses? Assuming I have 10 records in my database... Is it smart to use a while loop in that? Thanks!

Posted: Mon Jun 20, 2005 1:01 pm
by neophyte
foreach or while works just fine when working with mail().

Posted: Mon Jun 20, 2005 1:12 pm
by Burrito
if you wanna just send the mail once, you can comma separate them.