Separate cron and make mail alert optional