I built a web application to send email at regular time. Now, I use a windows service to check whether there is new email needs to be sent for every minute. So, it has a web application for me to input email address, email content, datetime to send AND a windows service program to have a timer to check MSSQL regularly to send email.
Now, I want to combine them into one web or desktop application. How can the while loop in C# code can execute code for every minute?
Thanks for advice.