OJS Review Request Remind Auto Email

How is the “Review request remind auto” job ‘from’ email address determined?

One of our journals has sent automatic review request reminder emails sent to reviewers who hadn’t yet confirmed if they would review by the required date. However the emails are randomly ‘from’ one of the registered author’s emails - not the editor’s? We can’t work out why the emails are from this certain user who has nothing to do with journal admin.

We checked the config file off the server and email settings are as they should be.

Clearly the reviewers are confused they are getting reminder emails from a random person!

1 Like

The code handling that is here: https://github.com/pkp/pkp-lib/blob/master/classes/task/ReviewReminder.inc.php#L39

It seems that there is no setFrom there, so I am not sure what happens here then: https://github.com/pkp/pkp-lib/blob/master/classes/mail/Mail.inc.php#L489

@bozana, @asmecher maybe we should add
$email->setFrom($context->getSetting('contactEmail'), $context->getSetting('contactName'));
here: https://github.com/pkp/pkp-lib/blob/master/classes/task/ReviewReminder.inc.php#L60 ?

Hi @Tuwpub,

Are you using a cron job to trigger these tasks, or are you using the Acron plugin?

Alec Smecher
Public Knowledge Project Team

Hi Alec

The Acron plugin is disabled and we’re using a cron job.

Hi @Tuwpub/@ajnyga,

The Acron plugin is one potential cause of seemingly random “From:” addresses – I’m not sure how this would be happening with a cron job. But in any case, @ajnyga’s suggestion should be a good fix. I’ve added this change at Review reminders need From address set · Issue #2792 · pkp/pkp-lib · GitHub.

@Tuwpub, if you have a chance to try out this change and see whether it seems to correct the issue, I’d be much obliged. It’s a low-risk change but the verification wouldn’t hurt.

Alec Smecher
Public Knowledge Project Team

@Tuwpub, also make sure that your setting in Settings => Journal => Contact => Principal contact is correct.