Hy,
I have a c# program that sends emails with GMail SMTP server and I want to make a service or something running behind that sends this emails every 5 minutes.
Does anyone have any idea how can I make this with c# and asp.net?
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
Two options that spring to mind:
Write a Windows service. Kick off a timer that triggers every five minutes, and do your work there.
Set up a Windows scheduled task (“Task Scheduler” in Vista/Win7) to trigger every five minutes and launch your application.
I’d tend towards the latter. Windows services are easy to set up, but nothing’s simpler than no code at all.