log to mail for cron