Skip to content
Permalink
Browse files

Apply unauth SMTP as nightly patch

  • Loading branch information...
NEMS Linux
NEMS Linux committed Mar 7, 2019
1 parent 5abcc6d commit f4de6a71fcb6f5193e1a9b9fff2b183b72450e4b
Showing with 2 additions and 2 deletions.
  1. +1 −1 data/1.5/nagios/plugins/nems_sendmail_host
  2. +1 −1 data/1.5/nagios/plugins/nems_sendmail_service
@@ -508,7 +508,7 @@ $mail->isSMTP();
$mailserver = explode(':',$nems['resource']['USER7']);
$mail->Host = $mailserver[0];
$mail->Port = $mailserver[1];
// if user has an empty username, treat as no SMTP auth
// NEMS00001 if user has an empty username, treat as no SMTP auth
if (strlen($nems['resource']['USER9']) > 0) {
$mail->SMTPAuth = true;
$mail->Username = $nems['resource']['USER9'];
@@ -535,7 +535,7 @@ $mail->isSMTP();
$mailserver = explode(':',$nems['resource']['USER7']);
$mail->Host = $mailserver[0];
$mail->Port = $mailserver[1];
// if user has an empty username, treat as no SMTP auth
// NEMS00001 if user has an empty username, treat as no SMTP auth
if (strlen($nems['resource']['USER9']) > 0) {
$mail->SMTPAuth = true;
$mail->Username = $nems['resource']['USER9'];

0 comments on commit f4de6a7

Please sign in to comment.
You can’t perform that action at this time.