Page 1 of 1

email stopped working after upgrade to 5.10

Posted: Sat Jun 03, 2023 8:13 am
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?

Re: email stopped working after upgrade to 5.10

Posted: Sun Jun 04, 2023 10:23 pm
by kg2857
Did you grep to see if the change was made withe sed?

Re: email stopped working after upgrade to 5.10

Posted: Mon Jun 05, 2023 8:24 am
by JohnFLi
Yes, I do see on line 318 of PHPMailer.php, it does say: public $SMTPAutoTLS = false;

in the original file line 318 said: public $SMTPAutoTLS = true;

Re: email stopped working after upgrade to 5.10

Posted: Mon Aug 07, 2023 10:14 pm
by Andreaa23
JohnFLi wrote: Sat Jun 03, 2023 8:13 am 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 DMV Practice Test(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?
I have the same problem, tried many ways but it still doesn't work

Re: email stopped working after upgrade to 5.10

Posted: Mon Aug 07, 2023 10:42 pm
by Ensoway
JohnFLi wrote: Mon Jun 05, 2023 8:24 am Yes, I do see on line 318 of PHPMailer.php, it does say: public $SMTPAutoTLS = false fnaf security breach
in the original file line 318 said: public $SMTPAutoTLS = true;
I tried restarting the computer, it gave me a long error message and couldn't even work email, I don't understand why.

Re: email stopped working after upgrade to 5.10

Posted: Wed Aug 09, 2023 9:28 pm
by lisapurnellsw
I`ve got a similar Problem since 15.10 but with SSL. This is the same problem since you have TLS and TLS auto-upgrade both disabled. Taylor Swift 2048