"Yamin Prabudy" <[EMAIL PROTECTED]> wrote:
> i had make a web interface to send announcement mail to my
customers,..rite
> now i had about 500
> once I send mail to my customers my server hang ( i guess to much open
> file)...i complie by kernel again to get a big descriptor, but still
worried
> about the hang problem....i put a delay in my program so it send a mail
and
> delay in x time, but i get a web error and my mail stop sending in my
> customer number 300

set_time_limit( 240 );  // Increase allowable script execution time to 240
seconds.

This will probably help in your case, but you might want to look at a
mailing list manager like majordomo or mailman to pass the email to.  Then
the mailing list manager can handle delivery to the recipients.  You can
always write the recipient list file dynamically using PHP.  Or you may want
to insert the records into a queue table in the same MySQL database where
your recipients are coming from and run a cron job every X minutes to
determine if there are any records in the queue and if so to pull a set
number of them from the table and send them emails then delete the records
from the table.

--
Steve Werby
COO
24-7 Computer Services, LLC
Tel: 804.817.2470
http://www.247computing.com/


-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]

Reply via email to