Set up the email based on env