added email configs and env variables