Email notifications not working
-
- Posts: 145
- Joined: Wed Oct 03, 2018 9:15 am
Email notifications not working
Hello Team,
I have try to send test email but i am not able to send i am getting below error
A test email was sent to xxxxxxxxxxxxxxx
----
Mailer said: [01-03-2019 18:02:30] The following From address failed: xxxxxxxx : Called MAIL FROM without being connected,,,SMTP server error: Called MAIL FROM without being connectedSMTP server error: Called MAIL FROM without being connected (method=smtp;host=<SMTP server ip>;port=25;security=none), Referer: admin/testemail.php
An error occurred sending a test email!
Could you please help us resolve this issue ?
I have try to send test email but i am not able to send i am getting below error
A test email was sent to xxxxxxxxxxxxxxx
----
Mailer said: [01-03-2019 18:02:30] The following From address failed: xxxxxxxx : Called MAIL FROM without being connected,,,SMTP server error: Called MAIL FROM without being connectedSMTP server error: Called MAIL FROM without being connected (method=smtp;host=<SMTP server ip>;port=25;security=none), Referer: admin/testemail.php
An error occurred sending a test email!
Could you please help us resolve this issue ?
-
- Posts: 5324
- Joined: Wed Aug 22, 2018 4:39 pm
- Location: saint paul
Re: Email notifications not working
Hello @manimurugesan,
Please verify you are using the correct port number for your SMTP server, and try the following:
1. Re-enter the username and password and select update, and try to send a test email.
2. Try selecting either TLS or SSL for authentication, and send a test mail.
Please verify you are using the correct port number for your SMTP server, and try the following:
1. Re-enter the username and password and select update, and try to send a test email.
2. Try selecting either TLS or SSL for authentication, and send a test mail.
As of May 25th, 2018, all communications with Nagios Enterprises and its employees are covered under our new Privacy Policy.
Be sure to check out our Knowledgebase for helpful articles and solutions!
Be sure to check out our Knowledgebase for helpful articles and solutions!
-
- Posts: 145
- Joined: Wed Oct 03, 2018 9:15 am
Re: Email notifications not working
Hello,
I have tried with TLS or SSL for authentication, but still i am getting below error
A test email was sent to <mail id>
----
Mailer said: [01-07-2019 16:37:16] SMTP connect() failed. https://github.com/PHPMailer/PHPMailer/ ... leshooting (method=smtp;host=<SMTP server ip>;port=25;security=ssl), Referer: admin/testemail.php
An error occurred sending a test email!
i have checked port 25 only we have mentioned in mail settings and port is opened only all firewall rules and everything is same as per that working server
As i said in old version email notification is working but new version we have to change anything ?
In SMTP server any connection need to be establish ?
Please let us know
I have tried with TLS or SSL for authentication, but still i am getting below error
A test email was sent to <mail id>
----
Mailer said: [01-07-2019 16:37:16] SMTP connect() failed. https://github.com/PHPMailer/PHPMailer/ ... leshooting (method=smtp;host=<SMTP server ip>;port=25;security=ssl), Referer: admin/testemail.php
An error occurred sending a test email!
i have checked port 25 only we have mentioned in mail settings and port is opened only all firewall rules and everything is same as per that working server
As i said in old version email notification is working but new version we have to change anything ?
In SMTP server any connection need to be establish ?
Please let us know
-
- Posts: 5324
- Joined: Wed Aug 22, 2018 4:39 pm
- Location: saint paul
Re: Email notifications not working
Hi @manimurugesan,
PHPMailer - Troubleshooting Using Debug Logging
https://support.nagios.com/kb/article/p ... g-820.html
According to troubleshooting guide, it looks like this is most likely due to dns, firewall or network issues. Follow the instructions in the link below to enable the SMTP debug log, then send a test email again and post the error for us to review.This may also appear as SMTP connect() failed or Called Mail() without being connected in debug output. This is often reported as a PHPMailer problem, but it's almost always down to local DNS failure, firewall blocking (for example as GoDaddy does) or another issue on your local network. It means that PHPMailer is unable to contact the SMTP server you have specified in the Host property, but doesn't say exactly why. It can also be caused by not having the openssl extension loaded (See encryption notes below).
PHPMailer - Troubleshooting Using Debug Logging
https://support.nagios.com/kb/article/p ... g-820.html
As of May 25th, 2018, all communications with Nagios Enterprises and its employees are covered under our new Privacy Policy.
Be sure to check out our Knowledgebase for helpful articles and solutions!
Be sure to check out our Knowledgebase for helpful articles and solutions!
-
- Posts: 145
- Joined: Wed Oct 03, 2018 9:15 am
Re: Email notifications not working
Hello,
As per your instructions I have enabled SMTP debug log but I am getting error Please find the below ss for the same
As per your instructions I have enabled SMTP debug log but I am getting error Please find the below ss for the same
You do not have the required permissions to view the files attached to this post.
-
- Posts: 5324
- Joined: Wed Aug 22, 2018 4:39 pm
- Location: saint paul
Re: Email notifications not working
Hi @manimurugesan,
These kinds of issues are usually the result of configuration settings. Did you have email notifications working for this account before? If so, did you make any changes to your server?
Turn on the debug log, tail the log file, send a test email and post the output for us to review.
Also, what version of php are you using?
Thanks.
These kinds of issues are usually the result of configuration settings. Did you have email notifications working for this account before? If so, did you make any changes to your server?
Turn on the debug log, tail the log file, send a test email and post the output for us to review.
Code: Select all
tail -F /usr/log/phpmailer.log
Code: Select all
rpm -q php
You do not have the required permissions to view the files attached to this post.
As of May 25th, 2018, all communications with Nagios Enterprises and its employees are covered under our new Privacy Policy.
Be sure to check out our Knowledgebase for helpful articles and solutions!
Be sure to check out our Knowledgebase for helpful articles and solutions!
-
- Posts: 145
- Joined: Wed Oct 03, 2018 9:15 am
Re: Email notifications not working
Hello,
I have turned on debug log and checked PFB Command out
But In one of the server emil notification is working properly we are facing issue for few server's all the server's showing same error.
tail -F /usr/log/phpmailer.log
tail: cannot open ‘/usr/log/phpmailer.log’ for reading: No such file or directory
tail: cannot watch parent directory of ‘/usr/log/phpmailer.log’: No such file or directory
tail: inotify cannot be used, reverting to polling
rpm -q php
php-5.4.16-45.el7.x86_64
I have turned on debug log and checked PFB Command out
But In one of the server emil notification is working properly we are facing issue for few server's all the server's showing same error.
tail -F /usr/log/phpmailer.log
tail: cannot open ‘/usr/log/phpmailer.log’ for reading: No such file or directory
tail: cannot watch parent directory of ‘/usr/log/phpmailer.log’: No such file or directory
tail: inotify cannot be used, reverting to polling
rpm -q php
php-5.4.16-45.el7.x86_64
-
- DevOps Engineer
- Posts: 19396
- Joined: Tue Nov 15, 2011 3:11 pm
- Location: Nagios Enterprises
- Contact:
Re: Email notifications not working
Sorry, the command given was incorrect, the file is here
The other unanswered question was
Code: Select all
tail -f /usr/local/nagiosxi/tmp/phpmailer.log
Did you have email notifications working for this account before?
-
- Posts: 145
- Joined: Wed Oct 03, 2018 9:15 am
Re: Email notifications not working
Hello ,
yes before few monhts email notification was working but now it is not working .
yes before few monhts email notification was working but now it is not working .
Last edited by manimurugesan on Thu Jan 10, 2019 1:12 pm, edited 1 time in total.
-
- DevOps Engineer
- Posts: 19396
- Joined: Tue Nov 15, 2011 3:11 pm
- Location: Nagios Enterprises
- Contact:
Re: Email notifications not working
Were you able to run the following?
Code: Select all
tail -f /usr/local/nagiosxi/tmp/phpmailer.log