Click here to Skip to main content
15,887,027 members
Please Sign up or sign in to vote.
1.00/5 (1 vote)
See more:
Hi i have a web page that sends SMTP emails when it's browsed and i need to send these emails at a scheduled time. So I used the windows task scheduler to do this for me.

Question 1. Sometimes Im getting the same email several times meaning that my webpage was refreshed more than once per schedule.

to fix this i added a new step to my schedule. to close internet explorer. i created an .exe according to this (which closes all internet explorer windows when i double click on it and run it) http://www.howtogeek.com/howto/windows-vista/how-do-i-kill-all-the-iexploreexe-processes-at-once/

Question 2 now even though my step 1 runs in the schedule my step 2 doesn't run and close the web page.

can someone please help me with Q1 or Q2? much appreciated. thank you.
Posted
Comments
Maciej Los 27-Jun-13 2:40am    
Why do you close IE? If you want to avoid sending multiple emails via SMTP, clear cookies and/or session variables.

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900