Click here to Skip to main content
Rate this: bad
good
Please Sign up or sign in to vote.
See more: TaskScheduler
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 26-Jun-13 19:59pm
Comments
Maciej Los at 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)

  Print Answers RSS
0 OriginalGriff 6,803
1 Sergey Alexandrovich Kryukov 6,377
2 DamithSL 5,421
3 Manas Bhardwaj 4,841
4 Maciej Los 4,330


Advertise | Privacy | Mobile
Web02 | 2.8.1411023.1 | Last Updated 27 Jun 2013
Copyright © CodeProject, 1999-2014
All Rights Reserved. Terms of Service
Layout: fixed | fluid

CodeProject, 503-250 Ferrand Drive Toronto Ontario, M3C 3G8 Canada +1 416-849-8900 x 100