How to send mail at a certain time from asp.net web application

后端 未结 2 2022
别那么骄傲
别那么骄傲 2021-01-21 14:32

I am new to asp.net. I have a project working. I need to send different mails every day at 12 am to different users.
I need to know how to implement the method that will wak

2条回答
  •  忘掉有多难
    2021-01-21 14:43

    You can create a Windows Service that will be executed automatically at the time you want. The windows service should contain the code to send email.You can check out these links on Simple Windows Service Sample and Simple Windows Service which sends auto Email alerts. You can also implement a timer in your application that can manage it. If you want to do it this way then check this article.

提交回复
热议问题