exiting process
sending mail from scheduler