summaryrefslogtreecommitdiffstats
path: root/usr/local/www/system_advanced_notifications.php
diff options
context:
space:
mode:
authorjim-p <jimp@pfsense.org>2010-07-14 15:01:46 -0400
committerjim-p <jimp@pfsense.org>2010-07-14 15:01:46 -0400
commit9277b7efaa567ca2dcb584368c985ddd80d655f7 (patch)
tree22fe7434a9c6acda88b3bb706c0bd4ee38b7e5f9 /usr/local/www/system_advanced_notifications.php
parentf3dc4bf1af5915de958dd409e00bcd48d29f2fc7 (diff)
downloadpfsense-9277b7efaa567ca2dcb584368c985ddd80d655f7.zip
pfsense-9277b7efaa567ca2dcb584368c985ddd80d655f7.tar.gz
Allow setting the SMTP port for notifications. Fixes #677
Diffstat (limited to 'usr/local/www/system_advanced_notifications.php')
-rw-r--r--usr/local/www/system_advanced_notifications.php10
1 files changed, 10 insertions, 0 deletions
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");
</td>
</tr>
<tr>
+ <td width="22%" valign="top" class="vncell"><?=gettext("SMTP Port of E-Mail server"); ?></td>
+ <td width="78%" class="vtable">
+ <input name='smtpport' value='<?php echo $pconfig['smtpport']; ?>'><br/>
+ <?=gettext("This is the port of the SMTP E-Mail server, typically 25 or 587 (submission)."); ?>
+ </td>
+ </tr>
+ <tr>
<td width="22%" valign="top" class="vncell"><?=gettext("From e-mail address"); ?></td>
<td width="78%" class="vtable">
<input name='smtpfromaddress' type='input' value='<?php echo $pconfig['smtpfromaddress']; ?>'><br/>
OpenPOWER on IntegriCloud