Thank you for your example on emailing in a window service. I am getting this error below in my servicelog.txt file.
Simple Service started at 25/01/2017 01:47:23 PM
Simple Service Error on: 25/01/2017 01:47:23 PM Object reference not set to an instance of an object. at WindowsService3.Service1.ScheduleService()