email stopped working after upgrade to 5.10

This support forum board is for support questions relating to Nagios XI, our flagship commercial network monitoring solution.
Post Reply
User avatar
JohnFLi
Posts: 496
Joined: Mon Jun 17, 2013 3:11 pm

email stopped working after upgrade to 5.10

Post by JohnFLi »

I upgraded to 5.10
now when i go to my email settings and have it send a test email, it returns
SMTP connect() failed. https://github.com/PHPMailer/PHPMailer/ ... leshooting (method=smtp;host=mailServerName.com;port=25;smtpauth=true;security=none), Referer: admin/testemail.php
on my Contacts setup, if i have them set to "notify service my email" instead of "xi_service_notification_handler", the email do go out.....sonat east not all is lost

from another post, i followed
Re: Mails don't get send - SMTP connect() failed.
Post by pbroste » Tue May 23, 2023 2:28 pm

Hello @jacek

Thanks for reaching out, let's make the following update:

Make a backup:
CODE: SELECT ALL

cp /usr/local/nagiosxi/html/includes/components/oauth2/vendor/phpmailer/phpmailer/src/PHPMailer.php /usr/local/nagiosxi/html/includes/components/oauth2/vendor/phpmailer/phpmailer/src/PHPMailer.php.bkp.5.10.0
Update by:
CODE: SELECT ALL

sed -i s/'public $SMTPAutoTLS = true'/'public $SMTPAutoTLS = false'/1 /usr/local/nagiosxi/html/includes/components/oauth2/vendor/phpmailer/phpmailer/src/PHPMailer.php
Restart the Apache service and send test email

Thanks,
Perry
but it didnt help

it was fine BEFORE the update
any ideas?
Everybody is somebody else’s weirdo
Post Reply