From 2d74f1cf28a734fe1880dce7638bc1cbab558ab8 Mon Sep 17 00:00:00 2001 From: "Albert S. Causing" Date: Wed, 16 Mar 2011 15:31:22 +0800 Subject: Add support for TLS/SSL for notification (tested with smtp.gmail.com port 465) --- etc/inc/notices.inc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'etc/inc/notices.inc') diff --git a/etc/inc/notices.inc b/etc/inc/notices.inc index 0cbf5fd..a5ccc7b 100644 --- a/etc/inc/notices.inc +++ b/etc/inc/notices.inc @@ -295,7 +295,7 @@ function notify_via_smtp($message) { $smtp->host_port = empty($config['notifications']['smtp']['port']) ? 25 : $config['notifications']['smtp']['port']; $smtp->direct_delivery = 0; - $smtp->ssl = 0; + $smtp->ssl = ($config['notifications']['smtp']['ssl'] == "checked") ? 1 : 0; $smtp->debug = 0; $smtp->html_debug = 0; $smtp->localhost=$config['system']['hostname'].".".$config['system']['domain']; -- cgit v1.1