Send mail from asp.net when application is not running

孤街醉人 提交于 2019-12-02 14:44:41

问题


I want to send email on certain calendar days say 20th of everymonth. How can i do this? The problem is i am not so sure that this appliction will be browsed by users on 20th of the month. If not opened on this day, perhaps the mail can not be sent. Is there any way i can send it even if application is not running.

Thanks.


回答1:


For this requirement I will write Windows Service Application. Service will run on server without user intervention and will be dependent on users to login.

High level Action Steps will be

  1. Store Calendar Days
  2. Allow Service to access this store and send emails (using predefined template?) on requested Date time.


来源:https://stackoverflow.com/questions/13490630/send-mail-from-asp-net-when-application-is-not-running

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!