[OCS] Custom Email Template

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

Moderators: jmacgreg, michael, John

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.
Posts: 27
Joined: Fri Jul 04, 2008 9:09 am
Location: Guimarães/Braga - Portugal

[OCS] Custom Email Template

Postby albertosa » Thu Dec 09, 2010 11:29 am

Sorry to bother with this issue by I've searched all support forum and I didn't found a solution.
I've tried several solutions but something is missing...

I need to customise the email message automatically sent to authors (and with copy to track director). This is affected by the "SUBMISSION ACK" prepared email (Submission Acknowledgement).

Apart from the variables "{$paperTitle}", "{$paperAbstract}" or " {$submissionUrl}" I need to use other information, like:
- Author's name and surname
- '' institution
- '' country
- '' email
- abstract keywords

My questions are:
On wich file(s) do I set the parameters?
»» (classes\mail\PaperMailTemplate.inc.php) ?

How can I set the parameters?
if I add this lines (in 'PaperMailTemplate.inc.php'):
$paramArray['AuthorName'] = strip_tags($author->getFullName());
$paramArray['Affiliation'] = strip_tags($author->getAffiliation());
$paramArray['Country'] = strip_tags($author->getCountry());

I get errors:
««Fatal error: Call to a member function getAffiliation() on a non-object in /home/<*edited*>/public_html/classes/mail/PaperMailTemplate.inc.php on line 73»»

I appreciate any guidance!

Return to “OCS Technical Support”

Who is online

Users browsing this forum: Baidu [Spider] and 1 guest