On Mon, 16 Dec 2002, wrote: >I wonder if I can mail 300 customers in one click? > >part of script: > >while($listrow = mysql_fetch_array($listresult)) { > > $recipient = $listrow[epost]; > $subject = "$subj"; > $message = "$mess"; > $headers .= "From: $admail\n"; > $headers .= "Reply-To: $admail\n"; > $headers .= "X-Mailer: PHP\n"; > mail($recipient, $subject, $message, $headers); >} > >or is there a limit?
You may need to increase your max_execution_time, the default seems to be 30 seconds, pretty low for 300 emails: >cat `locate php.ini`|grep max_execution_time max_execution_time = 30 ; Maximum execution time of each script, in seconds -- Greg Donald http://destiney.com/ -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php