Page 1 of 1

Email Reporting error

Posted: 21 Feb 2020, 00:08
by agostmarc1
Hi everyone,

we use MantisBT 2.23.0 with plugin Email Reporting 0.10.0
we have correctly configured the email and the test is ok. The cron is also activated and scheduled correctly but the "/mantisbt/plugin.php?page=EmailReporting/bug_report_mail" command returns this "bug_report_mail.php is not allowed to be invoked through a webserver" error.
The link is: http://www.drchef.cloud/mantisbt/plugin ... eport_mail
How can we solve it?


Thanks
Marco

Re: Email Reporting error

Posted: 22 Feb 2020, 05:56
by SL-Gundam
It is advised to run the cron job like this. That would make sure it skips the webserver
*/5 * * * * /usr/local/bin/php /path/to/mantis/plugins/EmailReporting/scripts/bug_report_mail.php

If you must run it through the webserver then disable this
http://www.mantisbt.org/wiki/doku.php/m ... red_script