summaryrefslogtreecommitdiffstats
path: root/usr
diff options
context:
space:
mode:
authorRenato Botelho <garga@FreeBSD.org>2015-01-28 13:23:33 -0200
committerRenato Botelho <garga@FreeBSD.org>2015-01-28 13:23:33 -0200
commite336d9ef3f0dc1e5295641e3915c0b320c3b6e96 (patch)
tree276b9c7890f2cffec0be119a1cc51f7c0f5e35b4 /usr
parent7094c303b7d46c9f7b24c3f1bd4432187832e85c (diff)
parent305856e8fb19495e0543e0d74216117aac1d4bd8 (diff)
downloadpfsense-e336d9ef3f0dc1e5295641e3915c0b320c3b6e96.zip
pfsense-e336d9ef3f0dc1e5295641e3915c0b320c3b6e96.tar.gz
Merge pull request #1421 from phil-davis/patch-4
Diffstat (limited to 'usr')
-rw-r--r--usr/local/www/system_advanced_notifications.php20
1 files changed, 20 insertions, 0 deletions
diff --git a/usr/local/www/system_advanced_notifications.php b/usr/local/www/system_advanced_notifications.php
index df4d52a..da0c418 100644
--- a/usr/local/www/system_advanced_notifications.php
+++ b/usr/local/www/system_advanced_notifications.php
@@ -75,6 +75,8 @@ if ($config['notifications']['smtp']['username'])
$pconfig['smtpusername'] = $config['notifications']['smtp']['username'];
if ($config['notifications']['smtp']['password'])
$pconfig['smtppassword'] = $config['notifications']['smtp']['password'];
+if ($config['notifications']['smtp']['authentication_mechanism'])
+ $pconfig['smtpauthmech'] = $config['notifications']['smtp']['authentication_mechanism'];
if ($config['notifications']['smtp']['fromaddress'])
$pconfig['smtpfromaddress'] = $config['notifications']['smtp']['fromaddress'];
@@ -126,6 +128,7 @@ if ($_POST) {
$config['notifications']['smtp']['notifyemailaddress'] = $_POST['smtpnotifyemailaddress'];
$config['notifications']['smtp']['username'] = $_POST['smtpusername'];
$config['notifications']['smtp']['password'] = $_POST['smtppassword'];
+ $config['notifications']['smtp']['authentication_mechanism'] = $_POST['smtpauthmech'];
$config['notifications']['smtp']['fromaddress'] = $_POST['smtpfromaddress'];
if($_POST['disable_smtp'] == "yes")
@@ -308,6 +311,23 @@ include("head.inc");
</td>
</tr>
<tr>
+ <td width="22%" valign="top" class="vncell"><?=gettext("Notification E-Mail auth mechanism"); ?></td>
+ <td width="78%" class="vtable">
+ <select name='smtpauthmech' id='smtpauthmech' class="formselect">
+ <?php
+ foreach ($smtp_authentication_mechanisms as $name => $desc):
+ $selected = "";
+ if ($pconfig['smtpauthmech'] == $name)
+ $selected = "selected=\"selected\"";
+ ?>
+ <option value="<?=$name;?>" <?=$selected;?>><?=$desc;?></option>
+ <?php endforeach; ?>
+ </select>
+ <br />
+ <?=gettext("Select the authentication mechanism used by the SMTP server. Most work with PLAIN, some servers like Exchange or Office365 might require LOGIN."); ?>
+ </td>
+ </tr>
+ <tr>
<td valign="top" class="">
&nbsp;
</td>
OpenPOWER on IntegriCloud