Use environment for mail settings