Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations IamaSherpa on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Server.ScriptTimeout upper limit

Status
Not open for further replies.

Caradog

Programmer
Jun 28, 2000
73
GB
Can anyone tell me if there is an maximum limit on the time I can set for an ASP script to time out?

I've written an app to send e-mails stored in a databse (max of 450 of them) by a user via a web form using JMAIL as the mail sender. Problem is, the script times out quite quickly and I've found it takes between 4.7 and 10 seconds to send 1 mail, so 450x10 is 75 mins :)

Other method I suppose could be to write a self-refreshing script to send mails in batches of ten setting the timeout on each page to 200 seconds. Hhmmm...

Any suggestions/ideas guys?
 
Caradog,

Two suggestions :
A) try to raise the timeout, on one hand and maybe try sending batches of 5 or 10 mails, and re-invoking the page with some form of counter.

B) Try using maybe MSMQ to load your mails, from an event fired by your asp page. With a component listening to the queue status, that would fire the component that would actually send the mails. This way you would just use the asp page to set things off.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top