emailing and Cron task improved