automate to fire every hour


I have built an website that sends emails if you click a button, what I want to do is automate this process so that every hour it gets called and sends emails, how can I do this

Please help


Who is Participating?
dexterrajeshConnect With a Mentor Commented:
can you please check it here:

you can create a console app and scheduled it using sql as they windows UI wont be used... I am not sure if this works for you...
there are different options to send email automatically

1) you can use windows schedular in u r computer to send them
the following urls will help u :

2)u can achieve the same functionality using sql server,if u are using that in u r project.
first u need to configure the sql to send emails the procedure and requirements for a computer to send email are given below,

I think you need to find an alternate for the button click event...

hope it helps

R8VIAuthor Commented:
Hi dexterrajesh,

Thanks for the advise but none of the links above work, I suppose I'll have to turn the code into a desktop app and get the windows schedular to call it every hour, and code the onclick button event for onload for the desktop app.

But could you pelase provide the links so that I dont get bad request


Kiran SonawaneProject LeadCommented:
Best way to write windows service. Here is simple codeproject link to start with this
you can use something like so:

and edit the time amount and trigger to suit your needs
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

All Courses

From novice to tech pro — start learning today.