Email Reporting error

This plugin allows you to report an issue in MantisBT by sending an email to a particular mail account

Moderators: Developer, Contributor

Post Reply
agostmarc1
Posts: 1
Joined: 20 Feb 2020, 23:55

Email Reporting error

Post 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
SL-Gundam
Posts: 722
Joined: 06 Jul 2011, 14:17

Re: Email Reporting error

Post 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
Post Reply