I've written a web based application for our Marketing
dept. to use for our members.  This app uses an html
template that it parses through and replaces special
tags with user specific info.
We are mailing as many as 10,000 at a time.  The
script that does this basically just loops through the
member list parses the template composes the
email(using MIME::Lite) and sends it to qmail.  At the
end of the sending I give a report on the screen that
shows how many were sent...etc.
Here is the problem.  With long email lists the script
can take up to 20 minutes to finish.  It seems that
this is too long, because around 15 minutes the
browser window changes to can't find server/dns error.
 I know it isn't a CGI gateway timeout issue cause I
do autoflush and continue to send small chunks of data
to the browser every 100 emails sent.

What I'd like to have happen is when the user hits the
send button, just have a page load immediatly that
notifies them the script is running and an error
report will be emailed to them shortly.  This way the
script either closes the connection and continues to
run or passes it off to another script that will email
the batch.  I'm not sure exactly how to implement
this.  Any suggestions would be appreciated.

thanks,
Byron

We are running on a Unix machine.


__________________________________________________
Do You Yahoo!?
Yahoo! Greetings - Send FREE e-cards for every occasion!
http://greetings.yahoo.com
_______________________________________________
Perl-Unix-Users mailing list
[EMAIL PROTECTED]
To unsubscribe: http://listserv.ActiveState.com/mailman/mysubs

Reply via email to