Skip to content
Permalink
Browse files

Force TLS disabled if set in SST

  • Loading branch information...
NEMS Linux
NEMS Linux committed Apr 12, 2019
1 parent 59e0bc2 commit 464aaa3927aaa61f4d064f565b353e812aab26d1
Showing with 6 additions and 0 deletions.
  1. +3 −0 data/1.5/nagios/plugins/nems_sendmail_host
  2. +3 −0 data/1.5/nagios/plugins/nems_sendmail_service
@@ -518,6 +518,9 @@ if (strlen($nems['resource']['USER9']) > 0 && strtoupper($nems['resource']['USER
}
if ($nems['resource']['USER15'] == 1 || !isset($nems['resource']['USER15'])) {
$mail->SMTPSecure = 'tls';
} else {
$mail->SMTPSecure = false;
$mail->SMTPAutoTLS = false;
}
$mail->SMTPOptions = array(
'ssl' => array(
@@ -545,6 +545,9 @@ if (strlen($nems['resource']['USER9']) > 0 && strtoupper($nems['resource']['USER
}
if ($nems['resource']['USER15'] == 1 || !isset($nems['resource']['USER15'])) {
$mail->SMTPSecure = 'tls';
} else {
$mail->SMTPSecure = false;
$mail->SMTPAutoTLS = false;
}
$mail->SMTPOptions = array(
'ssl' => array(

0 comments on commit 464aaa3

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