large recordsets - asp page repeating
I have a website that matches products with members, e.g. members post a new product for sale and members can then search and buy those products. There is also an email alert service, sent at the end of each day, where newly added products are matched to registered users preferences and an email is sent to them with an aggregated list.
We can get up to 200 new products a day and ahve around 2000 registered users, and about 1000 email sent each day.
What happens is that an asp page is run where it selects all new added products and then another record set of all registered users, the page then loops through both record sets and compiles an email for each user. Some emails can be up to 100Kb. We have set a server timeout to 1 hour but it ussually takes about 5 mins to run (this will grow as we acquire more registered users).
The problem that I am having is that when I run the page, if we have a lot of new products e.g. 250, the page keeps re-running so registered users can receive the same email up to 3 times. We have run the script on our local development server and it runs fine and only once. Why would the page run three times is it something to do with our hosting companies settings on IIS? is there a better way to do this? Could it be down to the fact taht it is a very server intensive process, so the server administrator is blocking it or something?
Any help or clues would be greatly appreciated.