Set email environment.