| @@ 746-751 (lines=6) @@ | ||
| 743 | // The "Reply-To" is set to the sharer if an mail address is configured |
|
| 744 | // also the default footer contains a "Do not reply" which needs to be adjusted. |
|
| 745 | $initiatorEmail = $initiatorUser->getEMailAddress(); |
|
| 746 | if($initiatorEmail !== null) { |
|
| 747 | $message->setReplyTo([$initiatorEmail => $initiatorDisplayName]); |
|
| 748 | $emailTemplate->addFooter($instanceName . ($this->defaults->getSlogan() !== '' ? ' - ' . $this->defaults->getSlogan() : '')); |
|
| 749 | } else { |
|
| 750 | $emailTemplate->addFooter(); |
|
| 751 | } |
|
| 752 | ||
| 753 | $message->useTemplate($emailTemplate); |
|
| 754 | $this->mailer->send($message); |
|
| @@ 423-428 (lines=6) @@ | ||
| 420 | // The "Reply-To" is set to the sharer if an mail address is configured |
|
| 421 | // also the default footer contains a "Do not reply" which needs to be adjusted. |
|
| 422 | $initiatorEmail = $initiatorUser->getEMailAddress(); |
|
| 423 | if($initiatorEmail !== null) { |
|
| 424 | $message->setReplyTo([$initiatorEmail => $initiatorDisplayName]); |
|
| 425 | $emailTemplate->addFooter($instanceName . ($this->defaults->getSlogan() !== '' ? ' - ' . $this->defaults->getSlogan() : '')); |
|
| 426 | } else { |
|
| 427 | $emailTemplate->addFooter(); |
|
| 428 | } |
|
| 429 | ||
| 430 | $message->useTemplate($emailTemplate); |
|
| 431 | $this->mailer->send($message); |
|
| @@ 484-489 (lines=6) @@ | ||
| 481 | ] |
|
| 482 | ); |
|
| 483 | $message->setFrom([\OCP\Util::getDefaultEmailAddress($instanceName) => $senderName]); |
|
| 484 | if ($initiatorEmailAddress !== null) { |
|
| 485 | $message->setReplyTo([$initiatorEmailAddress => $initiatorDisplayName]); |
|
| 486 | $emailTemplate->addFooter($instanceName . ' - ' . $this->defaults->getSlogan()); |
|
| 487 | } else { |
|
| 488 | $emailTemplate->addFooter(); |
|
| 489 | } |
|
| 490 | ||
| 491 | $message->setTo([$shareWith]); |
|
| 492 | $message->useTemplate($emailTemplate); |
|