mirror of
https://github.com/pfsense/pfsense.git
synced 2025-10-26 11:38:35 +00:00
Dont check for 'checked' but rather if it is just set
This commit is contained in:
parent
d269747b35
commit
c2fe67ebe0
@ -309,8 +309,8 @@ function send_smtp_message($message, $subject = "(no subject)") {
|
||||
$smtp->host_port = empty($config['notifications']['smtp']['port']) ? 25 : $config['notifications']['smtp']['port'];
|
||||
|
||||
$smtp->direct_delivery = 0;
|
||||
$smtp->ssl = ($config['notifications']['smtp']['ssl'] == "checked") ? 1 : 0;
|
||||
$smtp->tls = ($config['notifications']['smtp']['tls'] == "checked") ? 1 : 0;
|
||||
$smtp->ssl = (isset($config['notifications']['smtp']['ssl'])) ? 1 : 0;
|
||||
$smtp->tls = (isset($config['notifications']['smtp']['tls'])) ? 1 : 0;
|
||||
$smtp->debug = 0;
|
||||
$smtp->html_debug = 0;
|
||||
$smtp->localhost=$config['system']['hostname'].".".$config['system']['domain'];
|
||||
|
||||
Loading…
Reference in New Issue
Block a user