You are viewing the PKP Support Forum | PKP Home Wiki

E-Mail Templates

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 Templates

Postby metricgravity » Tue Jan 22, 2013 6:40 pm


I have a question about how to use the e-mail templates. I understand that I can create a link to an e-mail template form. However, I do not understand how to set the recipient of an e-mail message, or how to set the values of variables within a template.

As an example, I am interested in using the e-mail template, "COPYEDIT AUTHOR COMPLETE," which goes from an author to a section editor. I changed the wording of the e-mail message such that it now is a request from an author for a section editor to review a manuscript. The new wording of the template is as follows:


I have submitted the manuscript, "{$articleTitle}," to the Journal of Insect Science Online Submissions System. I request that you see through the editorial process in your role as Editor.

Submission URL: {$submissionUrl}
Username: {$editorUsername}

Thank you,

I want to create a link for an author to send this message to a section editor of his choosing. To do that, I would need to be able to select the recipient of the message. However, I have not been able to figure out how to create a link for a particular recipient. I also need to set the values of the Smarty variables ({$editorialContactName}, {$articleTitle}, etc.) to specific values. However, I was not able to do that.

I was wondering if someone could please help me. I can clarify if my question is confusing.

Thank you for your help.

Best Regards,
Posts: 26
Joined: Mon Mar 19, 2012 1:40 pm

Re: E-Mail Templates

Postby asmecher » Wed Jan 23, 2013 10:04 am

Hi metricgravity,

The easiest way to open an email template is to use the "template" parameter to the /user/email handler -- however, using that technique you will not be able to use email variables. If you want to use email variables and control recipients, you'll need to code up a new function rather than using the "template" parameter. To do this, have a look at some of the existing examples -- if this message is being sent by the Editor, then look at e.g. pages/sectionEditor/SubmissionEditHandler.inc.php at the thankReviewer function (and associated SectionEditorAction::thankReviewer function).

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

Return to OJS Technical Support

Who is online

Users browsing this forum: Bing [Bot] and 2 guests