Click here to Skip to main content
13,050,904 members (62,516 online)
Rate this:
Please Sign up or sign in to 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)

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 18:59pm
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)

  Print Answers RSS
Top Experts
Last 24hrsThis month

Advertise | Privacy | Mobile
Web02 | 2.8.170713.1 | Last Updated 27 Jun 2013
Copyright © CodeProject, 1999-2017
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