Hello everybody!
I want to be able to send email notifications around 3am daily or weekly. I will have a table with the user email address and the body of the message and a bit for sent yes or no. I want to be able to query the table and sent the emails to the recipients.
My questions, can i do this with system.threading.sleep() and wait for 12hrs have the class under global.asax application start? I"m not sure in a web app how I can have something like "Service" waiting for a specic time to be executed.
Creating the email and querying the database is not the problem. My problem is how can i triggered this at specific time automatically?
Any help is much appreciated. Thanks.