Mail configuration with server_environment

Mail configuration with server_environment