using env variable for email config