Creating new email template for special submission ack

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

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.
Posts: 11
Joined: Wed Dec 06, 2006 1:38 pm

Creating new email template for special submission ack

Postby JZief » Wed Dec 27, 2006 12:41 pm

Hello Alec,

We have created a journal that will have only one author submitting to it and for this journal I would like the submission acknowledgement email which willl be sent automatically to be different than the standard submission ack email template. I think that creating a new email template would be the best approach, however, what code modifications will have to be made so that this new email template is sent just for submissions to this one journal while the standard submission-ack email will be sent for submissions to all other journals?

Thanks for your help,

Posts: 945
Joined: Wed Oct 15, 2003 6:15 am
Location: Brasí­lia/DF - Brasil

Email Templates

Postby ramon » Wed Dec 27, 2006 2:19 pm


I don't think you need to alter the source code.

If you're talking about version 2.x all you need to do is go as Journal Manager to the Administration > Email Templates and edit the text used for the specific email.

I believe other journals hosted will have their own configurations.

Posts: 2
Joined: Mon Sep 18, 2006 1:34 pm

Postby katkade » Tue Jan 02, 2007 2:32 pm

I would like to display the "Section Title" of the article in the SUBMISSION_ACK email. I am however not able to find out what is the template variable that is to be used to achieve this.

Could someone please help me with this.


Posts: 10015
Joined: Wed Aug 10, 2005 12:56 pm

Postby asmecher » Tue Jan 02, 2007 2:59 pm

Hi katkade,

The template variables are defined in the PHP code that calls the template; in this case, it's in classes/author/form/submit/ around line 109:

Code: Select all

    'authorName' => $user->getFullName(),
    'authorUsername' => $user->getUsername(),
    'editorialContactSignature' => $journal->getSetting('contactName') . "\n" . $journal->getTitle(),
    'submissionUrl' => Request::url(null, 'author', 'submission', $article->getArticleId())
Add an entry to the array as follows:

Code: Select all

    'sectionTitle' => $article->getSectionTitle(),
Then alter your email template to include the {$sectionTitle} variable as necessary.

Alec Smecher
Open Journal Systems Team
Don't miss the First International PKP Scholarly Publishing Conference
July 11 - 13, 2007, Vancouver, BC, Canada

Return to “OJS Technical Support”

Who is online

Users browsing this forum: No registered users and 1 guest