C# console app to send email at scheduled times

前端 未结 8 771
北海茫月
北海茫月 2020-12-28 18:44

I\'ve got a C# console app running on Windows Server 2003 whose purpose is to read a table called Notifications and a field called \"NotifyDateTime\" and send an email when

8条回答
  •  无人及你
    2020-12-28 19:02

    I would turn it into a service instead. You can use System.Threading.Timer event handler for each of the scheduled times.

提交回复
热议问题