private void timer_Tick(object sender, EventArgs e)
 {
   EmailNotification en = new EmailNotification();
   en.DoSendMailTask();      
 }
 static void Main(string[] args)
 {
   EmailNotification en = new EmailNotification();
   en.DoSendMailTask();      
 }