summaryrefslogtreecommitdiffstats
path: root/etc/inc
diff options
context:
space:
mode:
authorAlbert S. Causing <albertcausing@gmail.com>2011-03-16 15:31:22 +0800
committerAlbert S. Causing <albertcausing@gmail.com>2011-03-16 15:31:22 +0800
commit2d74f1cf28a734fe1880dce7638bc1cbab558ab8 (patch)
tree30387f0f0e9ed0a5b77625d0e8f475c47d1d1e15 /etc/inc
parente58da189b45242c57ba8b186c0209087cfa67c11 (diff)
downloadpfsense-2d74f1cf28a734fe1880dce7638bc1cbab558ab8.zip
pfsense-2d74f1cf28a734fe1880dce7638bc1cbab558ab8.tar.gz
Add support for TLS/SSL for notification (tested with smtp.gmail.com port 465)
Diffstat (limited to 'etc/inc')
-rw-r--r--etc/inc/notices.inc2
1 files changed, 1 insertions, 1 deletions
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'];
OpenPOWER on IntegriCloud