You are viewing the PKP Support Forum | PKP Home Wiki

E-mail to Editor on Submission

Are you responsible for making OJS work -- installing, upgrading, migrating or troubleshooting? Do you think you've found a bug? Post in this forum.

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

Forum rules
The Public Knowledge Project Support Forum is moving to http://forum.pkp.sfu.ca

This forum will be maintained permanently as an archived historical resource, but all new questions should be added to the new forum. Questions will no longer be monitored on this old forum after March 30, 2015.

E-mail to Editor on Submission

Postby ianm » Wed Dec 07, 2005 9:59 am

I have searched but been unable to find any information on this. Can the Editor be sent an e-mail whenever a new submission is made (even just a copy of the e-mail to the author acknowledging submission)? This would prompt them to visit the website and start work on the new paper.

Can the code used to send the author's e-mail be amended? If so, which file controls it?


Posts: 35
Joined: Sat Aug 06, 2005 3:15 am

Postby asmecher » Wed Dec 07, 2005 1:05 pm

Hi Ian,

This feature isn't currently available in OJS, but it's trivial to add -- look at classes/author/form/submit/AuthorSubmitStep5Form.inc.php at approximately line 89. The following call adds the author to the email's recipient list:
Code: Select all
$mail->addRecipient($user->getEmail(), $user->getFullName());

You'd simply have to add something like the following, just before or after the above line:
Code: Select all
$mail->addRecipient($journal->getSetting('contactEmail'), $journal->getSetting('contactName'));

This would add the journal's primary contact (as per Journal Setup, page 1) as a recipient.

In general, if you want to find the code that's responsible for sending an email, the easiest approach is to find the email's key. Look in the Journal Manager's email management page, find the email you want to track down, and make a note of the key (e.g. COPYEDIT_ACK). Now search the code for that key, and you'll find something similar to what I've noted above.

Alec Smecher
Open Journal Systems Team
Posts: 10015
Joined: Wed Aug 10, 2005 12:56 pm

Postby ianm » Thu Dec 08, 2005 4:25 am

Thank you, both for the specific fix and the general advice! I will try it out.

Posts: 35
Joined: Sat Aug 06, 2005 3:15 am

Editor Notification of Submission

Postby ramon » Fri Dec 09, 2005 8:45 am

Dear OJSers,

This feature was available in OJS 1.x, if you had assigned a General Editor.
All new submissions were then sent to this Editor automatically...
Posts: 945
Joined: Wed Oct 15, 2003 6:15 am
Location: Brasí­lia/DF - Brasil

Return to OJS Technical Support

Who is online

Users browsing this forum: No registered users and 2 guests