Topic: sending multiple mails

I want to know how to send mails to multiple email addresses using PHP code.

Thanks.

http://www.hytechpro.com

Re: sending multiple mails

Use an array & a foreach loop.

E.g.

$adress = array('some@adress.com', 'another@adress.com', 'yetanother@adress.com');

foreach ($adress as $sendto) {
  YOUR MAIL CODE HERE. EACH ADRESS IS STORED INTO THE '$sendto' VARIABLE.
}

That would be a simple way of doing it, but it all depens on how you want the script to work, where you're getting the data from etc..

Re: sending multiple mails

Yes the Simple way of coding is using "Looping Structures".

God wisely designed the human body so that we can neither pat our own backs nor kick ourselves too easily