PHP Gurus, I currently run a few newsletters that go out to small groups of 50 to 100 people. I use a while loop to send out the emails. I chose a while loop as opposed to just taking all the emails and putting them in the CC field because I wanted to personalize each email with a greeting that included the recipients name and other personalized information. It looks like: while ($member = mysql_fetch_array($sqlQueryResult) { $content = "Hi, {$member[name]}. Your email address is {$member[email]}"; mail ($member[email], $subject, $content) } When I execute my script, it takes a little time to go through about 50 people. I'm not sure exactly, but maybe ten seconds, possibly as high as twenty. Soon I will be creating a script to send out an email to 500 people, with the possibility that it will grow to 1000. I'm concerned that the while loop will take ten times as long, and not only be a drain on the server, but also run the risk of my browser timing out waiting for a response to confirm all mails were sent. So my question is, is there a way more efficient than while loops to send out multiple emails with personalized information? Is it the mail() command that takes time, or the mysql_fetch_array(), or both? Any suggestions would be greatly appreciated.
-- Yoroshiku! Dave G [EMAIL PROTECTED] -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php