I made the scripts in a very nice way...
The CDONTS page sends 100 emails per page, then at the end of the page, there is a JavaScript code
<%If PageNum <> AllPages Then%> <Script> function flyto(){ window.location.href('SendMail.asp?&Page=<%=PageNum + 1%>') } setTimeout("flyto()",3000) </Script> <%End IF%>
|
In this way, if I've 10,000 emails, and I was displaying them 100 per page, so I'll have 100 page.
It sends the 1st 100 emails (Page 1), and then goes to page 2, 3, ...etc with a javascript code so i can set the time between every send.
The way it goes is nice, it shows you how many emails was sent between pages, if any error occured, you can refresh.. and the script will continue working.