Extended invitation message text
This commit is contained in:
Родитель
e1160c7f0c
Коммит
067fe82c62
|
@ -266,18 +266,16 @@ class MailService {
|
|||
$owner = $this->userManager->get($poll->getOwner());
|
||||
$sentMails = [];
|
||||
$abortedMails = [];
|
||||
// $this->logger->debug('Search users for token ' . $token);
|
||||
|
||||
$recipients = $this->getRecipientsByShare(
|
||||
$this->shareMapper->findByToken($token),
|
||||
$this->config->getUserValue($poll->getOwner(), 'core', 'lang'),
|
||||
$poll->getOwner()
|
||||
);
|
||||
|
||||
// $this->logger->debug('Found these recipients: ' . json_encode($recipients));
|
||||
foreach ($recipients as $recipient) {
|
||||
$trans = $this->transFactory->get('polls', $recipient['language']);
|
||||
|
||||
// $this->logger->debug('Build eMailTemplate for ' . $recipient['userId']);
|
||||
|
||||
$emailTemplate = $this->mailer->createEMailTemplate('polls.Invitation', [
|
||||
'owner' => $owner->getDisplayName(),
|
||||
|
@ -300,7 +298,10 @@ class MailService {
|
|||
$recipient['link']
|
||||
);
|
||||
|
||||
$emailTemplate->addFooter($trans->t('This email is sent to you, because you are invited to vote in this poll by the poll owner.'));
|
||||
$emailTemplate->addBodyText( $trans->t('This link gives you personal access to the poll named above. </br> Press the button above or copy the following link and add it in your browser\'s location bar: ') );
|
||||
$emailTemplate->addBodyText( $recipient['link'] );
|
||||
|
||||
$emailTemplate->addFooter($trans->t('This email is sent to you, because you are invited to vote in this poll by the poll owner. At least your name or your email address is recorded in this poll. If you want to get removed from this poll, contact the site administrator or the initiator of this poll, where the mail is sent from.'));
|
||||
|
||||
try {
|
||||
// $this->logger->debug('Send Mail to ' . $recipient);
|
||||
|
|
Загрузка…
Ссылка в новой задаче