From 9277b7efaa567ca2dcb584368c985ddd80d655f7 Mon Sep 17 00:00:00 2001 From: jim-p Date: Wed, 14 Jul 2010 15:01:46 -0400 Subject: Allow setting the SMTP port for notifications. Fixes #677 --- usr/local/www/system_advanced_notifications.php | 10 ++++++++++ 1 file changed, 10 insertions(+) (limited to 'usr/local/www/system_advanced_notifications.php') diff --git a/usr/local/www/system_advanced_notifications.php b/usr/local/www/system_advanced_notifications.php index 80fecce..cdd8b2d 100644 --- a/usr/local/www/system_advanced_notifications.php +++ b/usr/local/www/system_advanced_notifications.php @@ -60,6 +60,8 @@ else // SMTP if($config['notifications']['smtp']['ipaddress']) $pconfig['smtpipaddress'] = $config['notifications']['smtp']['ipaddress']; +if($config['notifications']['smtp']['port']) + $pconfig['smtpport'] = $config['notifications']['smtp']['port']; if($config['notifications']['smtp']['notifyemailaddress']) $pconfig['smtpnotifyemailaddress'] = $config['notifications']['smtp']['notifyemailaddress']; if($config['notifications']['smtp']['username']) @@ -97,6 +99,7 @@ if ($_POST) { // SMTP $config['notifications']['smtp']['ipaddress'] = $_POST['smtpipaddress']; + $config['notifications']['smtp']['port'] = $_POST['smtpport']; $config['notifications']['smtp']['notifyemailaddress'] = $_POST['smtpnotifyemailaddress']; $config['notifications']['smtp']['username'] = $_POST['smtpusername']; $config['notifications']['smtp']['password'] = $_POST['smtppassword']; @@ -203,6 +206,13 @@ include("head.inc"); + + + '>
+ + + + '>
-- cgit v1.1