Script to run cron job to send emails at regular interval