Page 4 of 4
Re: Reminder Plugin for mantis 2.X
Posted: 21 Jun 2024, 10:45
by atorde
The result is the same as bug_reminder_mail_test.php
Mantis mail table is empty
Re: Reminder Plugin for mantis 2.X
Posted: 21 Jun 2024, 10:58
by cas
Now in this case the mail actually is send to the email address. Did you check the spam folder of the mailbox?
If that does not help, please activate the mail logging from mantis and check that outcome.
Add the following lines in config/config_inc.php :
Code: Select all
$g_log_level = LOG_EMAIL;
/**
* Specifies where the log data goes
*
* The following five options are available:
* - '': The empty string means {@link http://php.net/error_log
* default PHP error log settings}
* - 'none': Don't output the logs, but would still trigger EVENT_LOG
* plugin event.
* - 'file': Log to a specific file, specified as an absolute path, e.g.
* 'file:/var/log/mantis.log' (Unix) or
* 'file:c:/temp/mantisbt.log' (Windows)
* - 'page': Display log output at bottom of the page. See also
* {@link $g_show_log_threshold} to restrict who can see log data.
*
* @global string $g_log_destination
*/
$g_log_destination = 'file:/var/log/mantis.log';
suppose you will need to adjust the log_destination.
Just make sure the file exists (create an empty file) and that the web-user has access to it.
Re: Reminder Plugin for mantis 2.X
Posted: 21 Jun 2024, 11:29
by atorde
The emails were actually in spam. The special script works correctly.
I have created the crontab again and it still does not send me emails. I'm going to check to see if there is something wrong in the crontab
Re: Reminder Plugin for mantis 2.X
Posted: 21 Jun 2024, 11:51
by cas
I will check is possibly there still is another difference between the special and the actual script. We will get this running

Re: Reminder Plugin for mantis 2.X
Posted: 21 Jun 2024, 11:52
by atorde
Thank you very much Cas for the support you are offering.
Re: Reminder Plugin for mantis 2.X
Posted: 21 Jun 2024, 15:10
by cas
I have added bug_reminder_mail2.php so you can test another way

Re: Reminder Plugin for mantis 2.X
Posted: 21 Jun 2024, 15:52
by atorde
Re: Reminder Plugin for mantis 2.X
Posted: 24 Jun 2024, 07:57
by cas
I have reviewed and cleaned the script bug_reminder_mail2.php one more time.
Please check if this is still working as expected.
(to be fioyund @Github ofcourse)
Re: Reminder Plugin for mantis 2.X
Posted: 25 Jun 2024, 06:18
by atorde
Hello,
Sorry for the delay in replying.
The behavior with the new script is the same. If I run it with php it doesn't do anything but if I run it with php8.3 it works correctly