fixed cron job to send email based on the cron rate