Reputation: 13824
Situation: I need to send notification emails every Monday at 9 a.m to all employees, remind them to due the last week report.
I basically know how to "send email in ASP.NET" (I implemented the contact us form on our website, so "sending email service" basically will be executed when people hit submit button) but I had a hard time to figure out how to make it automatically execute at a certain time, maybe I need a scheduler or something like that, I don't use any database here?
Somebody who have done it before could give a right direction?
Upvotes: 2
Views: 11867
Reputation: 255
You should create a windows service which will do the job
Upvotes: 2
Reputation: 15881
For scheduling tasks I always recommend Quartz.NET. However, you should know that there are certain issues when you try to implement scheduler in asp.net application (in my opinion it is better to implement it in windows service). If you implement it in asp.net application remember about application pool idle time (set it to high value or disable automatic pool recycling) since pool must be active when the scheduler needs to execute the task.
Upvotes: 3