schedular with email functionality