开发者

Send An Email On Specific Date & TIme By ASP.Net and Using SMTP

开发者 https://www.devze.com 2023-01-18 09:13 出处:网络
Hi i have made application...that can have numbers of Event on Spec开发者_如何学运维ified Date,

Hi i have made application...that can have numbers of Event on Spec开发者_如何学运维ified Date, So i want to code tat when time for event is arrived so tat automatically the participant get information about the event..so i want to send email to all participant before a day..so suggest me the best idea of links

Thanks

(In Advance)


Please look at Quartz.net, free library for doing scheduled activities.


You can create a Timer in the StartUp (or Start?) event handler of the Application class (Global.asax.cs).

Set the timer interval to e.g. one hour and check whether you have to send new notifications.

Edit: as Guffa responded already: this works only if the asp.net worker process is alive (e.g. when used in well frequented website)


An ASP.NET application is not well suited for doing scheduled tasks. The IIS may close down the application at any time, and it may not start again until there is a request for the application.

You might want to use the scheduler in Windows instead to start an application regularly (e.g. once a minute) to check for events.

0

精彩评论

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