Permalink
Browse files

Force UTF-8 encoding, point host notify to new class

  • Loading branch information...
NEMS Linux
NEMS Linux committed Nov 3, 2018
1 parent 6eb6e0d commit 523175c7e325187cd44d43ab4299a44d0f55c468
Showing with 10 additions and 1 deletion.
  1. +8 −1 data/1.5/nagios/plugins/nems_sendmail_host
  2. +2 −0 data/1.5/nagios/plugins/nems_sendmail_service
@@ -18,7 +18,14 @@ with special permission from Heini Holm Andersen.
*******************************************************************************/
require_once '/var/www/PHPMailer/PHPMailerAutoload.php';
header('Content-Type: text/html; charset=utf-8');
use PHPMailer\PHPMailer\PHPMailer;
use PHPMailer\PHPMailer\Exception;
require '/var/www/PHPMailer/src/Exception.php';
require '/var/www/PHPMailer/src/PHPMailer.php';
require '/var/www/PHPMailer/src/SMTP.php';
/* Arguments containing Nagios Alert/Notification Info */
array_shift($argv);
@@ -18,6 +18,8 @@ with special permission from Heini Holm Andersen.
*******************************************************************************/
header('Content-Type: text/html; charset=utf-8');
use PHPMailer\PHPMailer\PHPMailer;
use PHPMailer\PHPMailer\Exception;

0 comments on commit 523175c

Please sign in to comment.