OJS OCS OMP OHS

You are viewing the PKP Support Forum | PKP Home Wiki



Automated email notifications from OJS

OJS development discussion, enhancement requests, third-party patches and plug-ins.

Moderators: jmacgreg, btbell, michael, bdgregg, barbarah, asmecher

Forum rules
Developer Resources:

Documentation: The OJS Technical Reference and the OJS API Reference are both available from the OJS Documentation page.

Git: You can access our public Git Repository here. Comprehensive Git usage instructions are available on the wiki.

Bugzilla: You can access our Bugzilla report tracker here.

Search: You can use our Google Custom Search to search across our main website, the support forum, and Bugzilla.

Questions and discussion are welcome, but if you have a workflow or usability question you should probably post to the OJS Editorial Support and Discussion subforum; if you have a technical support question, try the OJS Technical Support subforum.

Automated email notifications from OJS

Postby rmichael » Fri Apr 18, 2008 11:11 am

I would like OJS to send me email notification for two events:

1/ Creation of new user accounts. We've enabled creation of author, reader, and review accounts in journal setup and occasionally see bogus/spam user creation; also, I'd like to know when new people join and pay some attention to them.

2/ The addition of supplementary files to an existing submission. We need to ask authors to upload source material after acceptance and this is a decent way of doing so; though, I'm open to suggestions.

I've turned on logging, but there doesn't seem to be anything built in to handle these specific cases. Should I use hooks, modifiy our installation, or ..? I'd like to do this as a combination of "quick and dirty" and "the best way".

Thanks,
Richard
rmichael
 
Posts: 113
Joined: Fri Mar 30, 2007 3:32 pm

Re: Automated email notifications from OJS

Postby asmecher » Fri Apr 18, 2008 2:47 pm

Hi David,

Hooks should be able to do this without too many headaches. There should be a hook called "UserDAO::insertUser" that's called whenever a user entry is inserted; you should be able to check whether this is a user self-registration (as opposed to, say, an Editor creating a Reviewer account) using the Request::getRequestedPage() and Request::getRequestedOp() functions, and if they check out, you should be able to send your JM (or whoever) a message. There's sample code for sending a simple email message based on an email template in e.g. the emailColleague function in pages/rt/RTHandler.inc.php.

Likewise, for new supplementary files, you can use the "SuppFileDAO::insertSuppFile" hook for supplementary file insertions. Again, you'll need to check that it's actually the author adding the file, rather than e.g. an Editor.

Both of these tasks can be done using a single generic plugin. If you do approach it this way, please consider posting the plugin to the forum, as it may be useful for other users.

Regards,
Alec Smecher
Public Knowledge Project Team
asmecher
 
Posts: 9090
Joined: Wed Aug 10, 2005 12:56 pm

Re: Automated email notifications from OJS

Postby rmichael » Wed Apr 23, 2008 6:53 am

Hi Alec,

Both of these tasks can be done using a single generic plugin. If you do approach it this way, please consider posting the plugin to the forum, as it may be useful for other users.


Thanks for your comments, I'll try this. It seems like a good project for a first plugin attempt. (Aside, in another post, I just asked about soliciting reviewers from within OJS. That's probably a good candidate for a plugin too. If this works out, I'll go this route on that project as well.)

Regards,
Richard
rmichael
 
Posts: 113
Joined: Fri Mar 30, 2007 3:32 pm

Re: Automated email notifications from OJS

Postby sharonhu » Sat Dec 04, 2010 6:17 pm

Hello,

Our Journal is hosted on version 2.2.3 and our Systems department indicated customizing the email notification (e.g., notify when an account is created, new submission) and well as selective notification (e.g., only the manager receives these types of emails) is not easily implementable without affecting other journals hosted on the same server.

Does the newer version of OJS allows for easier email notification customization? If so, we have a better case for prioritizing the version upgrade.

Thank you,
Sharon
sharonhu
 
Posts: 2
Joined: Tue Oct 20, 2009 4:31 pm

Re: Automated email notifications from OJS

Postby jmacgreg » Wed Dec 08, 2010 8:54 pm

Hi Sharon,

In both OJS 2.2.3 and 2.3+, journal managers can modify email templates on a per-journal basis by clicking the "Prepared Emails" link from their User Home page. They can en/disable most emails, and edit the email text itself. There have been significant enhancements to notifications in OJS 2.3+, however, including a user-configurable notification page. If you can give us more details on what kind of workflow you are looking for, I can suggest whether it may be posible.

Cheers,
James
jmacgreg
 
Posts: 4190
Joined: Tue Feb 14, 2006 10:50 am

Re: Automated email notifications from OJS

Postby Garant » Thu May 31, 2012 1:32 am

Hi!
I've a bit another question: how to disable mail notifications? Or turn off them permanently?
Thank you!
Garant
 
Posts: 229
Joined: Wed May 30, 2012 8:53 am

Re: Automated email notifications from OJS

Postby jmarth » Thu Sep 20, 2012 12:49 am

Hi,
My question/problem is strongly related to Garant's:

We've just moved to another server and upgraded to version 2.4.0.0. Unfortunately the system has sent out automated review reminder to people that have declined our review request and thus have been cancelled from the review process. However, we are not sure if this is due to our moving or if it might be a bug in the software.

Apart from that I am interested, too, in how to disable the automated notifications - why are there prepared eMails that can be disabled and some that can not? For our specific handling of the review process it would be very helpful to disable the reminders every now and then to not put unintended pressure on reviewers.

Looking forward to your appraisal.
Best,
Julia.
jmarth
 
Posts: 1
Joined: Thu Sep 20, 2012 12:32 am

Re: Automated email notifications from OJS

Postby aleskl » Wed Oct 17, 2012 5:03 am

Hi Richard and Alec!
Did you then manage to create a plugin for the above automatic email notifications? I'm very much interested in the auto notification for newly uploaded supplementary files, because we also use the workflow with authors submitting original material via supplementary files.

Regards, Ales

rmichael wrote:Hi Alec,

Both of these tasks can be done using a single generic plugin. If you do approach it this way, please consider posting the plugin to the forum, as it may be useful for other users.


Thanks for your comments, I'll try this. It seems like a good project for a first plugin attempt. (Aside, in another post, I just asked about soliciting reviewers from within OJS. That's probably a good candidate for a plugin too. If this works out, I'll go this route on that project as well.)

Regards,
Richard
aleskl
 
Posts: 107
Joined: Mon Apr 11, 2011 7:08 am


Return to OJS Development

Who is online

Users browsing this forum: No registered users and 4 guests