Andrew Peterson wrote: > Hello, I have a mass email which times out due to our shared server's timeout > of 60,000 ms. (It takes longer than that to process the page.) I could loop > through and send out 2000 emails at a time, but I am still stuck with having > the client wait and click on âSend the next 1000 emailsâ button until > they're all sent out. Looking for a more elegant solution - something behind > the scenes. Any ideas? TIA. > > I do just that with my main project, which does email broadcasts.
I break each send up into 5k chunks. I have my broadcast task set up as a scheduled task, running every 10 min. It sniffs out if there's a send in the queue, what block is next to send, and piles through it. It usually takes less than 10 min to run, but I pad it so that the spooler on the main mail server has time to clear out before the next wave hits. Instead of having it trigger when your client sends, have it add it to a 'queue', and let your scheduled task tap that queue. When it's done, have it send an 'email complete' to your client so they know it's done. ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~| Enterprise web applications, build robust, secure scalable apps today - Try it now ColdFusion Today ColdFusion 8 beta - Build next generation apps Archive: http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:289456 Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4

