Page 2 of 2
Re: Email test fails
Posted: Wed Jun 03, 2015 2:17 pm
by gtolson
Same result...
Re: Email test fails
Posted: Wed Jun 03, 2015 4:02 pm
by ssax
Let's try this:
Edit /var/www/html/nagioslogserver/system/libraries/Email.php and change (around line 48):
Code: Select all
var $newline = "\n";
var $crlf = "\n";
To:
Code: Select all
var $newline = "\r\n";
var $crlf = "\r\n";
Then refresh your page and try to send the test email again and let us know the result.
If that doesn't fix it, revert back the changes.
Re: Email test fails
Posted: Wed Jun 03, 2015 4:45 pm
by lmiltchev
FYI, I just tested sending an email from my test Nagios Log Server to my test Nagios XI box, and it worked just fine:
example01.PNG
example02.PNG
You must have something in the mail log on the receiving server...
Re: Email test fails
Posted: Fri Jun 05, 2015 9:09 am
by gtolson
Hi ssax,
Editing the $newline and $crlf in Email.php did the trick. Once I set them to \r\n email tests are now successful!
Thank you to all for taking the time to help!!! Greatly appreciated!
Re: Email test fails
Posted: Fri Jun 05, 2015 9:20 am
by tmcdonald
I'll be closing this thread now, but feel free to open another if you need anything in the future!