use config::bool instead of read_string

pull/285/head
Felix Ableitner 5 years ago
parent a46245eecc
commit 8ba1cf20a7

@ -1399,7 +1399,7 @@ function smtp_mail($to, $from, $data, $password = "", $body = "") {
} else {
smtp_get_response($fh);
if (Config::read_string('smtp_sendmail_tls') === 'YES') {
if (Config::bool('smtp_sendmail_tls')) {
fputs($fh, "STARTTLS\r\n");
smtp_get_response($fh);

Loading…
Cancel
Save