Reminder Plugin for mantis 2.X

General discussion of Mantis.

Moderators: Developer, Contributor

atorde
Posts: 17
Joined: 17 Jun 2024, 15:34

Re: Reminder Plugin for mantis 2.X

Post by atorde »

The result is the same as bug_reminder_mail_test.php

Image

Mantis mail table is empty
cas
Posts: 1768
Joined: 11 Mar 2006, 16:08
Contact:

Re: Reminder Plugin for mantis 2.X

Post 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.
atorde
Posts: 17
Joined: 17 Jun 2024, 15:34

Re: Reminder Plugin for mantis 2.X

Post 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
cas
Posts: 1768
Joined: 11 Mar 2006, 16:08
Contact:

Re: Reminder Plugin for mantis 2.X

Post by cas »

I will check is possibly there still is another difference between the special and the actual script. We will get this running :mrgreen:
atorde
Posts: 17
Joined: 17 Jun 2024, 15:34

Re: Reminder Plugin for mantis 2.X

Post by atorde »

Thank you very much Cas for the support you are offering.
cas
Posts: 1768
Joined: 11 Mar 2006, 16:08
Contact:

Re: Reminder Plugin for mantis 2.X

Post by cas »

I have added bug_reminder_mail2.php so you can test another way :wink:
atorde
Posts: 17
Joined: 17 Jun 2024, 15:34

Re: Reminder Plugin for mantis 2.X

Post by atorde »

If I launch the script with the php statement it does not work, however if I launch it with the php8.3 statement it works correctly and I receive the email.
I have changed the php statement to php8.3 in the crontab but I still do not receive it, but if I put the php8.3 statement with the new script 2 in the crontab everything works perfectly :D :D :D :D :D
Image

Image

So I deduce that there is something in the original script that makes it not work.
Thank you again and congratulations for the great work you are doing!!
cas
Posts: 1768
Joined: 11 Mar 2006, 16:08
Contact:

Re: Reminder Plugin for mantis 2.X

Post 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)
atorde
Posts: 17
Joined: 17 Jun 2024, 15:34

Re: Reminder Plugin for mantis 2.X

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