opened 12:28PM - 17 Feb 23 UTC
Type:Bug
Priority:Important
Area: Emails:Config
<!--- Please be aware that as of the 31st January 2022 we no longer support 7.10….x.
New issues referring to 7.10.x will only be valid if applicable to 7.12.x and above.
If your issue is still applicable in 7.12.x, please create the issue following the template below -->
#### Issue
Also raised on Forums:
https://community.suitecrm.com/t/enable-smtp-over-ssl-or-tls-not-saving-setting/87920
<br>
When the user opens the Admin->"Email Settings" panel, the "Enable SMTP over SSL or TLS" field will default to "--none"--
Regardless of what was previously saved
This could result in lost/incorrectly saved Email Configuration.
Pre-save:

Save, then Re-enter Email Settings:

The Value *does* appear to save in the database.
So, something must happen on page-load that loses this dropdown selection.
<br>
#### Expected Behavior
Email configuration should not be lost.
<br>
#### Actual Behavior
On page-load, the TLS/SSL selection is lost
So users could inadvertently save broken Email Settings.
<br>
#### Steps to Reproduce
1. Navigate to Admin->Email Settings
2. Populate the fields appropriately, choosing either TLS or SSL
3. Save
4. Re-Enter Email Settings, see that TLS/SSL is lost and defaulted to "--none--"
<br>
#### Your Environment
* SuiteCRM Version used: 7.13.1
* Browser name and version (e.g. Chrome Version 51.0.2704.63 (64-bit)): Firefox 109.0.1
* Environment name and version (e.g. MySQL, PHP 7): PHP 8.0 / MariaDB 10.4.12
* Operating System and version (e.g Ubuntu 16.04): Ubuntu 18.04