I have C# web application that I want it to send out an email on a certain date, such as if equipment isn’t returned on the day it was due. Data is in MS SQL database.
I’ve got all the email code already done, and I’m just curious how do I trigger this email, say after the COB on that particular day?
Thanks,
Eric
Create a small console application that runs as a scheduled task.
It would do something like the following:
ifthe send date is equal toDateTime.Nowthen send the emailforeachemailUpdated
You mentioned you would like to do this with a trigger.. well I have never done that before, but have looked into it. I went with the console application approach. I liked this better. But here is a link on what I found on the trigger approach.