Permalink
Browse files

Fix port designation for SMTP notifications in 1.5

  • Loading branch information...
NEMS Linux
NEMS Linux committed Oct 31, 2018
1 parent 2a07136 commit bdc29ae56a1ef9b01c32c56c94b12ba6a85e90da
Showing with 6 additions and 2 deletions.
  1. +3 −1 data/1.5/nagios/plugins/nems_sendmail_host
  2. +3 −1 data/1.5/nagios/plugins/nems_sendmail_service
@@ -484,7 +484,9 @@ $HTMLmessage = '
$mail = new PHPMailer;
//$mail->SMTPDebug = 3; // Enable verbose debug output
$mail->isSMTP();
$mail->Host = $nems['resource']['USER7'];
$mailserver = explode(':',$nems['resource']['USER7'];
$mail->Host = $mailserver[0];
$mail->Port = $mailserver[1];
$mail->SMTPAuth = true;
$mail->Username = $nems['resource']['USER9'];
$mail->Password = $nems['resource']['USER10'];
@@ -509,7 +509,9 @@ $HTMLmessage = '
$mail = new PHPMailer;
//$mail->SMTPDebug = 3; // Enable verbose debug output
$mail->isSMTP();
$mail->Host = $nems['resource']['USER7'];
$mailserver = explode(':',$nems['resource']['USER7'];
$mail->Host = $mailserver[0];
$mail->Port = $mailserver[1];
$mail->SMTPAuth = true;
$mail->Username = $nems['resource']['USER9'];
$mail->Password = $nems['resource']['USER10'];

0 comments on commit bdc29ae

Please sign in to comment.