Automatically raise an event in ASP.NET C # to send emails

Is there a way in ASP.NET C # to raise an event at a given time every day to start the procedure and send emails to the list of users with their sales report?

In a way, I want to keep the stream in the background in the app_start event in the global file.

I am on shared hosting, so I don’t have much opportunity to update any settings on the server in accordance with my needs.

+3
source share
3 answers

Why don't you create an application that sends these emails and runs it at a specific time using the Windows task scheduler instead of supporting your application all the time?

, , , , .

+1
+1

Use System.Timers.Timerand follow what you need to callback.

0
source

All Articles