script for email cronjob