Move more mail.php settings to environment file.

Move smtp port and mail encryption type to env.php file, and update
env-sample.php file with new settings.