OJS OCS OMP OHS

You are viewing the PKP Support Forum | PKP Home Wiki



[OCS 2.3.3.1] 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
What to do if you have a technical problem with OCS:

1. Search the forum. You can do this from the Advanced Search Page or from our Google Custom Search, which will search the entire PKP site. If you are encountering an error, we especially recommend searching the forum for said error.

2. Check the FAQ to see if your question or error has already been resolved. Please note that this FAQ is OJS-centric, but most issues are applicable to both platforms.

3. Post a question, but please, only after trying the above two solutions. If it's a workflow or usability question you should probably post to the OCS Conference Support and Discussion subforum; if you have a development question, try the OCS Development subforum.

[OCS 2.3.3.1] 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!
albertosa
 
Posts: 25
Joined: Fri Jul 04, 2008 9:09 am
Location: Guimarães/Braga - Portugal

Return to OCS Technical Support

Who is online

Users browsing this forum: No registered users and 4 guests