Quote:I have created a web services that do auto emailing from Global.cs. I used the reference Code Project Ref for Simulate WS for auto scheduled email services, and it is sending email every 2 minutes from my gmail account to another gmail account. Now, I want to go further based on this success. I want to have UI interface where user can choose whom to send, what to send, send time, start date and end date in web form and make them work. For this, I have several drop down lists for recipients, course broucher, send time, two calendars for start date and end date in web form. User can make selectoin on this UI. Then, user can configure to send daily automatic email. I have created a table for ScheduledEmailID(PrimaryKey), Recipient Foreign ID, Email to Send, Send Time(datatype Time(7)), Start Date(datetype DateTime) and End Date(datatype DateTime). I will save user input into MS Sql. Then, I will fectch them to Global.cs, write business logic which is to compate datetime to run auto scheduling.Is it advisable to do it? Any idea, please. I also want to make sure that the service should stop running at End Date. Currently, this 2 minutes interval sending email has no stop option. Please adivse. Thank alot. I used this article as my point of ref Simulate a Windows Service using ASP.NET to run scheduled jobs[^].
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)