Page 1 of 1

An error occurred sending a test email!

Posted: Mon Feb 18, 2019 3:40 am
by talalmog
A test email was sent to MyEmailAddress@*****
----
Mailer said: [02-18-2019 08:34:21] SMTP connect() failed. https://github.com/PHPMailer/PHPMailer/ ... leshooting (method=smtp;host=IPAddress;port=25;smtpauth=true;security=none), Referer: admin/testemail.php
An error occurred sending a test email!

1-this is a new Nagiosxi server and we never used email before
2- SMTP port 25 is open and i mange to send emails with command (without nagios)


rpm -q php
php-5.4.16-45.el7.x86_64

Re: An error occurred sending a test email!

Posted: Mon Feb 18, 2019 3:46 pm
by npolovenko
Hello, @talalmog. Did you fill out relevant SMTP settings on the Mail Settings page in XI? (Admin -> Manage Email Settings(in the left column). Please go that page again and check the Debug Log option and then upload the /usr/local/nagiosxi/tmp/phpmailer.log after a few test retries.
Most often SMTP authentication problems are caused by wrong/unauthorized SMTP username, password or by the incorrect authentication protocol.
If you can please check the authentication logs on the SMTP server itself.

Re: An error occurred sending a test email!

Posted: Tue Feb 19, 2019 4:04 am
by talalmog
thank you,
the issue caused by wrong authentication
thanks

Re: An error occurred sending a test email!

Posted: Tue Feb 19, 2019 8:09 am
by scottwilkerson
talalmog wrote:thank you,
the issue caused by wrong authentication
thanks
Glad it is resolved

Locking thread