schedule_sendmail.pl modified