I am emailing 150 or so.... --------------------------------------------------------- Chris Kay (Systems Development) Techex Communications Website: www.techex.com.au Email: [EMAIL PROTECTED] Telephone: 1300 88 111 2 - Fax: (02) 9970 5788 ---------------------------------------------------------
-----Original Message----- From: Greg Donald [mailto:[EMAIL PROTECTED]] Sent: Tuesday, 17 December 2002 11:40 AM To: [EMAIL PROTECTED] Cc: [EMAIL PROTECTED] Subject: Re: [PHP] can I mail unlimited in one click? 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 -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php