View Full Version : sending multiple mails

09-16-2005, 12:39 PM
i want to know how to send emails to multiple email addresses using PHP code


09-16-2005, 12:55 PM
Elaborate a bit more, like what is it for? Is it using a form or what?

09-16-2005, 04:09 PM
Simply store all the adresses in an array, then using the foreach command loop through the array, using the mail function on every instance.

E.g. :

$emails = array( 'email1', 'email2', 'email3' );
foreach( $emails as $value )
mail( $value, 'Mass Emails!', 'This is a mass emailing process!');

EZ Archive Ads Plugin for vBulletin Copyright 2006 Computer Help Forum