waluyo
April 8, 2015, 11:53pm
1
I would like to add the conference secretary email in bcc when the track director notify author (paper accepted or revision required). The reason to have this is to notify the secretary that the paper is accepted/revision required, so the secretary will prepare a formal letter then send it to the author.
When TD click notify author, BCC is there but blank. I want to have this with email (for example secr@domain.com ).
How can I add the secretary email by default.
Regards, Waluyo
1 Like
Hi Waluyo,
You’ll need to add this to classes/submission/trackDirector/TrackDirectorAction.inc.php in the emailDirectorDecisionComment.inc.php.
Regards,
Alec Smecher
Public Knowledge Project Team
waluyo
April 10, 2015, 10:46am
3
Thanks Alec,
I can find the function emailDirectorDecisionComment
in file classes/submission/trackDirector/TrackDirectorAction.inc.php
However I cannot found directly the BCC.
Could you please more specific the code that I should modify.
Thank you in advance.
Regards, Waluyo
Hi Waluyo,
There are currently no BCC addresses assigned to that message, but you can add one using the addBCC function. http://pkp.sfu.ca/ojs/doxygen/stable/html/classMail.html
Regards,
Alec Smecher
Public Knowledge Project Team
waluyo
April 10, 2015, 3:58pm
5
Hi Alec,
I found a simple way, since what I want is a default value in the bcc.
I modify this file:
/templates/submission/comment/directorDecisionEmail.tpl
just add a value (see the difference below):
--- D:/Downloads/installer/ocs-2.3.6/templates/submission/comment/directorDecisionEmail.tpl Wed May 28 23:53:37 2014
+++ C:/xampp/htdocs/ocs/templates/submission/comment/directorDecisionEmail.tpl Fri Apr 10 23:42:32 2015
@@ -95,7 +95,7 @@ function deleteAttachment(fileId) {
{foreach from=$bcc item=bccAddress}
<input type="text" name="bcc[]" id="bcc" value="{if $bccAddress.name != ''}{$bccAddress.name|escape} <{$bccAddress.email|escape}>{else}{$bccAddress.email|escape}{/if}" size="40" maxlength="120" class="textField" /><br/>
{foreachelse}
- <input type="text" name="bcc[]" id="bcc" size="40" maxlength="120" class="textField" />
+ <input type="text" name="bcc[]" id="bcc" size="40" maxlength="120" class="textField" value="secr@domain.com"/>
{/foreach}
{if $blankBcc}
Now the track director is not required to type the secretary email, ,by default the bcc has a value="secr@domain.com "
Regards, Waluyo