View Full Version : sending multiple mails
09-16-2005, 01:39 PM
i want to know how to send emails to multiple email addresses using PHP code
09-16-2005, 01:55 PM
Elaborate a bit more, like what is it for? Is it using a form or what?
09-16-2005, 05: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.
$emails = array( 'email1', 'email2', 'email3' );
foreach( $emails as $value )
mail( $value, 'Mass Emails!', 'This is a mass emailing process!');
Powered by vBulletin® Version 4.2.2 Copyright © 2015 vBulletin Solutions, Inc. All rights reserved.