Need to attach PDF with submission acknowledgement mail

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: 29
Joined: Wed Sep 25, 2013 10:41 pm

Need to attach PDF with submission acknowledgement mail

Postby grandpol » Wed Sep 25, 2013 10:49 pm

Dear PKP Team,

Our Journal is using a separate copyright form. So I am planning to send the copyright form as an attachment with the submission acknowledgement e-mail.

How can I attach it with the prepared submission acknowledgement e-mail ?

Thanks ....

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

Re: Need to attach PDF with submission acknowledgement mail

Postby asmecher » Thu Sep 26, 2013 8:32 am

Hi Grandi,

Since that email is sent automtically, this will take a code modification. See the SUBMISSION_ACK email send code in classes/author/form/submit/

Code: Select all

// Send author notification email
$mail = new ArticleMailTemplate($article, 'SUBMISSION_ACK', null, null, null, false);
$mail->setFrom($journal->getSetting('contactEmail'), $journal->getSetting('contactName'));
if ($mail->isEnabled()) {
    $mail->addRecipient($user->getEmail(), $user->getFullName());
    // If necessary, BCC the acknowledgement to someone.
    if($journal->getSetting('copySubmissionAckPrimaryContact')) {
    if($journal->getSetting('copySubmissionAckSpecified')) {
        $copyAddress = $journal->getSetting('copySubmissionAckAddress');
        if (!empty($copyAddress)) $mail->addBcc($copyAddress);

    // Also BCC automatically assigned section editors
        foreach ($sectionEditors as $sectionEditorEntry) {
        $sectionEditor =& $sectionEditorEntry['user'];
        $mail->addBcc($sectionEditor->getEmail(), $sectionEditor->getFullName());

        'authorName' => $user->getFullName(),
        'authorUsername' => $user->getUsername(),
        'editorialContactSignature' => $journal->getSetting('contactName') . "\n" . $journal->getLocalizedTitle(),
        'submissionUrl' => $this->request->url(null, 'author', 'submission', $article->getId())
You'll want to alter this code with an addition to the Mail::addAttachment function, implemented in lib/pkp/classes/mail/

Alec Smecher
Public Knowledge Project Team

Return to “OJS Technical Support”

Who is online

Users browsing this forum: No registered users and 2 guests