Email test fails

This support forum board is for support questions relating to Nagios Log Server, our solution for managing and monitoring critical log data.
gtolson
Posts: 11
Joined: Mon Jun 01, 2015 3:33 pm

Re: Email test fails

Post by gtolson »

Same result...
ssax
Dreams In Code
Posts: 7682
Joined: Wed Feb 11, 2015 12:54 pm

Re: Email test fails

Post 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.
User avatar
lmiltchev
Bugs find me
Posts: 13589
Joined: Mon May 23, 2011 12:15 pm

Re: Email test fails

Post 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...
You do not have the required permissions to view the files attached to this post.
Be sure to check out our Knowledgebase for helpful articles and solutions!
gtolson
Posts: 11
Joined: Mon Jun 01, 2015 3:33 pm

Re: Email test fails

Post 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!
tmcdonald
Posts: 9117
Joined: Mon Sep 23, 2013 8:40 am

Re: Email test fails

Post by tmcdonald »

I'll be closing this thread now, but feel free to open another if you need anything in the future!
Former Nagios employee
Locked