开发者

schedule method in asp.net

How can i send emails automatically every day by asp.net appli开发者_运维技巧cation and c#?


Your best bet is to use a Scheduler like Quartz.NET. It will give you the most precise, flexible, and predictable results.


ASP.NET application cannot run scheduled code. It works on simple request response pattern so it can run the code only if HTTP request arrives. To do the scheduling you have to write another application. Ugly way is to use console application and schedule it by Windows scheduler. Better approach is to use windows service.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜