explicitly deactivate TLS (and auto-tls) when setting use-tls is OFF; fixes #496

Signed-off-by: Michael Kaufmann (d00p) <d00p@froxlor.org>
This commit is contained in:
Michael Kaufmann (d00p)
2017-12-19 08:00:39 +01:00
parent a5251824ae
commit cf4f15a83c
4 changed files with 8 additions and 0 deletions

View File

@@ -310,6 +310,8 @@ elseif ($page == 'testmail')
$testmail->Password = Settings::Get('system.mail_smtp_passwd');
if (Settings::Get('system.mail_smtp_usetls')) {
$testmail->SMTPSecure = 'tls';
} else {
$testmail->SMTPAutoTLS = false;
}
$testmail->Port = Settings::Get('system.mail_smtp_port');
}