-
Notifications
You must be signed in to change notification settings - Fork 235
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Emailing Reports doesn't work #53
Comments
The /email url should work fine. It's caught on line 41 of index.php. If you go to http://dev.justaskmeout.co.uk/reporting/email without any GET string, what do you see? If it's working correctly, you should get: {"error":"Valid email address required"} |
Hi, Can't believe I missed that. Having said that, by using Firebug and getting the GET URL used, I get the following error:
This suggests that it's assuming that /repor/csv exists when it doesn't in the git repository. Is this likely to be a minor oversight? Hmm, even creating this directory and making it a+rwx doesn't allow it to work. It's failing on a read to that directory, but at what point does it write, or is this supposed to be a link to the actual report as seen via a web browser? Thanks for your assistance. It really is appreciated, and PHP Reports truly is excellent. Marc |
Everything always gets routed through index.php so you don't need to create any directories or anything. Currently, the script that sends out the email attaches a CSV file of the report. You need Thanks for catching this. I'll add a note to the documentation. I'll also try to put some better error messaging instead of just throwing a 500 error. |
With mail_settings configured to send using PHP's mail function (and probably for all settings) I notice that the Email Report button attempts to get some JSON from a page called 'email' when the Send button is clicked. This page doesn't exist, so the mail cannot be sent.
The HTML/Javascript snippet that this seems to fail on (for all of my reports) is:
$.getJSON('http://dev.justaskmeout.co.uk/reporting/email',data,function(response) {
if(response && response.success) {
$('#email-report-modal').modal('hide');
Did this 'email' page use to exist at some point?
The text was updated successfully, but these errors were encountered: