configured environment variables and set up email