Daily Piler Report blank
Hello -
First off, MailPiler is wonderful! It fits our use perfectly.
We started with the OVA, but have since updated that image to 1.3.1 build 956.
Everything seems to working just fine, but I wanted to take a look at the daily report email - so I added the cron entry to send that.
However, when the email sends I receive the email with no body. The To:, Subject: and other header fields are intact, but there is simply nothing in the body.
I did some troubleshooting, and when I echo the output of the output buffer to the screen and run the daily-report.php manually, I see the expected HTML. When I comment that out and add some simple data to test the email, the email sends with no body at all.
I think the issue is somewhere in the send_smtp_mail function, but I cannot locate it.
Any thoughts?
Thank you!
Comments (15)
-
repo owner -
repo owner - changed status to closed
Not sure if there's anything to solve for me here. If so, then reopen the issue.
-
reporter I have looked through the function, but I do not see anything in the logs that would indicate why this email is blank.
Is this a known problem? My daily email sends, but the body is entirely blank. Again, if I echo the output buffer to the screen, it contains all the data.
Thoughts?
-
reporter - changed status to open
Still have blank emails
-
repo owner Get the following file: https://bitbucket.org/jsuto/piler/raw/master/util/daily-report.php, overwrite the existing one, and give it a try.
-
repo owner - changed status to closed
No news is good news.
-
reporter I replaced that file, but still the daily email is blank. It sends - just has no data in the body.
-
reporter - changed status to open
-
repo owner Try running it using the latest gui, eg.
php daily-report.php --webui /var/piler/www2
(or something like that).
-
repo owner - changed status to closed
No news is good news.
-
reporter - changed status to open
Ok, even using the latest master branch, the delivered email body is blank - no data at all. Again, if I redirect the output to the screen and run the file again, I see what appears to be the correct html. Anything else to try?
-
repo owner Sorry for the long delay from my side. Perhaps try a different mail reader. Without seeing your email I can't tell what's wrong.
-
I experienced this same issue. The fix for me is to define EOL as \r\n instead of \n
-
repo owner - changed status to resolved
Thanks, Joseph. Clifton, please try Joseph's suggestion.
-
reporter That did it! Perfect. Thank you SO much!
Wonderful!
-Clifton
- Log in to comment
Hello, I'm glad that you like piler. The send_smtp_mail function is in model/mail/mail.php file.