From 428d7cdb5e7be1d5ede6d5084459660b22c84b2c Mon Sep 17 00:00:00 2001 From: Bjoern Schiessle Date: Wed, 19 Apr 2017 15:53:33 +0200 Subject: improve mail text Signed-off-by: Bjoern Schiessle --- apps/sharebymail/lib/ShareByMailProvider.php | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) (limited to 'apps/sharebymail') diff --git a/apps/sharebymail/lib/ShareByMailProvider.php b/apps/sharebymail/lib/ShareByMailProvider.php index 7093fd3dfe7..5307a8cb223 100644 --- a/apps/sharebymail/lib/ShareByMailProvider.php +++ b/apps/sharebymail/lib/ShareByMailProvider.php @@ -485,15 +485,14 @@ class ShareByMailProvider implements IShareProvider { } $subject = (string)$this->l->t('Password to access »%s« shared with %s', [$filename, $shareWith]); - $plainBodyPart = $this->l->t("You just shared »%s« with %s.\nThe share was already send to the recipient. Due to the security policies\neach share needs to be protected by password and it is not allowed to send the\npassword directly by mail to the recipient. Therefore you need to forward\nthe password manually to the recipient.", [$filename, $shareWith]); - $htmlBodyPart = $this->l->t('You just shared »%s« with %s. The share was already send to the recipient. Due to the security policies each share needs to be protected by password and it is not allowed to send the password directly by mail to the recipient. Therefore you need to forward the password manually to the recipient.', [$filename, $shareWith]); + $bodyPart = $this->l->t("You just shared »%s« with %s. The share was already send to the recipient. Due to the security policies defined by the administrator of %s each share needs to be protected by password and it is not allowed to send the password directly to the recipient. Therefore you need to forward the password manually to the recipient.", [$filename, $shareWith, $this->defaults->getName()]); $message = $this->mailer->createMessage(); $emailTemplate = $this->mailer->createEMailTemplate(); $emailTemplate->addHeader(); $emailTemplate->addHeading($this->l->t('Password to access »%s«', [$filename]), false); - $emailTemplate->addBodyText($htmlBodyPart, $plainBodyPart); + $emailTemplate->addBodyText($bodyPart); $emailTemplate->addBodyText($this->l->t('This is the password: %s', [$password])); $emailTemplate->addBodyText($this->l->t('You can chose a different password at any time in the share dialog.')); $emailTemplate->addFooter(); -- cgit v1.2.3