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.
Know the answer? Post it — somebody with the same question will find it here.
Sign in to answer this question
It is the same account you read, post and publish with — and you will come straight back to this page.
kala swethaPosted Mar 22, 2007, 8:48 AM
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.