Clean schedule without execute runScheduledTasks.php

Hello Everybody,
We stay much time without execute runScheduledTasks.php to send automated tasks. Is there way to clean all task without send email to the editors? I am asking it because there are many task that were did by editor and execute this script will send to the user the same task.
Best Regards,

Hi @Rondineli_Gama_Saad,

One option would be to temporarily prevent OJS from sending email. Are you using SMTP-based email services, or a local MTA? (Have you configured SMTP in your config.inc.php?)

What version of OJS are you using?

Regards,
Alec Smecher
Public Knowledge Project Team

It’s configured gmail. The OJS version is 2.4.5.0

Hi @Rondineli_Gama_Saad,

You could temporarily edit lib/pkp/classes/mail/SMTPMailer.inc.php, find the mail function, and temporarily edit it to return true; at the top of the function. Then run the scheduled task script, and when it’s finished, remove your modification. This would result in e.g. backlogged submission review reminders being flagged as already sent, without actually delivering the emails.

Regards,
Alec Smecher
Public Knowledge Project Team