Sending email through Window Service
I have class library.. with method to send mail.. I want to use window service which would intantiate this class and send mail when time elapses.
1 Answer
Know the answer? Post it. Somebody with the same question will find it here.
kala swetha6 pointsPosted Mar 22, 2007, 4:48 AM EDT
Call the function that contains logic to send main in the
protected override void OnStart(string[] args) method of ServiceBase class.
I have tried like this and mail will be send each time the service was started. Similarly, call the method according to the time u mention.