Bob Schneider
asked on
Submitting a Classic ASP form on a timer
Is there a way to execute a classic asp form submission on a schedule with a timer (ie: submit the form every 30 seconds)? I have a vb6 application that puts race results online every 30 seconds and I want to send individual results emails automatically from the web site without having to click the submit button.
Thanks!
Thanks!
ASKER
So you are saying create a scheduled task on the web server? I hadn't thought about that. The problem is that it is data driven so exactly what it sends depends on the race in question. We might do 5 races on a morning and then go two weeks without having a race. Each race we do needs it's own set of participants/finishers with their own email addresses. Do you think that writing a vb script would be the best way to go? I'm surprised I can't just embed a timer into the html and have it fire that way?
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
ASKER
Thanks Scott!
For testing this out, I suggest hard coding your own email as the "send to" so you don't flood people with your tests.
I think what you want to do is set a scheduled task (in windows) to hit either your asp page or a vb script that sends the email. If you have form data that has to be filled in, then probably best to just write it in vb.
One feature I add if it is to hit an asp page is to add a querystring to act like a password. That way if you surf to the page by accident it does not fire.