diff options
author | Morris Jobke <hey@morrisjobke.de> | 2017-08-30 22:56:14 +0200 |
---|---|---|
committer | Morris Jobke <hey@morrisjobke.de> | 2017-08-30 22:56:14 +0200 |
commit | 404bd1be60c1dafd83b8a1bfe3de7addc5878b1c (patch) | |
tree | 8492a9f88e92053f45aec21b66f32a335c93f110 /apps/sharebymail/lib | |
parent | ee14659ae8f62da48420f3dd2cb8ed167bfca5dd (diff) | |
download | nextcloud-server-404bd1be60c1dafd83b8a1bfe3de7addc5878b1c.tar.gz nextcloud-server-404bd1be60c1dafd83b8a1bfe3de7addc5878b1c.zip |
Implement metadata for email templates of remaining emails
Signed-off-by: Morris Jobke <hey@morrisjobke.de>
Diffstat (limited to 'apps/sharebymail/lib')
-rw-r--r-- | apps/sharebymail/lib/ShareByMailProvider.php | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/apps/sharebymail/lib/ShareByMailProvider.php b/apps/sharebymail/lib/ShareByMailProvider.php index 0b8381c204e..e5ae64ba120 100644 --- a/apps/sharebymail/lib/ShareByMailProvider.php +++ b/apps/sharebymail/lib/ShareByMailProvider.php @@ -463,6 +463,13 @@ class ShareByMailProvider implements IShareProvider { $message = $this->mailer->createMessage(); $emailTemplate = $this->mailer->createEMailTemplate(); + $emailTemplate->setMetaData('sharebymail.RecipientPasswordNotification', [ + 'filename' => $filename, + 'password' => $password, + 'initiator' => $initiatorDisplayName, + 'initiatorEmail' => $initiatorEmailAddress, + 'shareWith' => $shareWith, + ]); $emailTemplate->addHeader(); $emailTemplate->addHeading($this->l->t('Password to access »%s«', [$filename]), false); $emailTemplate->addBodyText($htmlBodyPart, $plainBodyPart); @@ -524,6 +531,13 @@ class ShareByMailProvider implements IShareProvider { $message = $this->mailer->createMessage(); $emailTemplate = $this->mailer->createEMailTemplate(); + $emailTemplate->setMetaData('sharebymail.OwnerPasswordNotification', [ + 'filename' => $filename, + 'password' => $password, + 'initiator' => $initiatorDisplayName, + 'initiatorEmail' => $initiatorEMailAddress, + 'shareWith' => $shareWith, + ]); $emailTemplate->addHeader(); $emailTemplate->addHeading($this->l->t('Password to access »%s«', [$filename]), false); |