I have developed a .NET application with a SQL database. In SQL I have table Table_dom which contains a Date column where I will store date. Another table is Table_TL where I have one email column.
Now when the date is 5 days after the current date I need to send a reminder mail to TL from the Table_TL table email column. Could you please help on this?
Thank you.
If using SQL Server 2005 or later you could use the Database Mail feature to send emails directly from the database. A periodic check for sending reminders could be setup using a SQL Server Agent job.
Edit:
Provided you have setup the Database Mail correctly you should be able to add something like this (untested) to a SQL job: