Click here to Skip to main content
Rate this: bad
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)
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
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 Sergey Alexandrovich Kryukov 434
1 OriginalGriff 385
2 CHill60 230
3 CPallini 220
4 Abhinav S 200
0 Sascha Lefévre 75
1 OriginalGriff 70
2 F-ES Sitecore 55
3 Peter Leow 50
4 Dave Kreskowiak 40

Advertise | Privacy | Mobile
Web03 | 2.8.150327.1 | Last Updated 27 Jun 2013
Copyright © CodeProject, 1999-2015
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