Re: sending mail with PHP from web

From: Date: Wed, 07 Feb 2001 04:57:33 +0000
Subject: Re: sending mail with PHP from web
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-38494@lists.php.net to get a copy of this message
"Yamin Prabudy" <phplist@pro.net.id> 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/

« previous php.general (#38494) next »