fix default email generation for cron environment