changed time to send emails dependent on env config