Update mail.php

move more settings in to env.php file.