summaryrefslogtreecommitdiffstats
path: root/lib
diff options
context:
space:
mode:
authorThomas Müller <thomas.mueller@tmit.eu>2015-12-07 15:17:19 +0100
committerThomas Müller <thomas.mueller@tmit.eu>2015-12-07 15:17:19 +0100
commita9e5faf7d001842a0e14c98a27516a1806df98dd (patch)
tree8bb5ca08a52ee4377499da68e0c5bc2e02143ad4 /lib
parente44b164f406b52530d81e755c9e1b959e0f1ef27 (diff)
parent820c3b852dd478761a0ce433d0553a0f94731370 (diff)
downloadnextcloud-server-a9e5faf7d001842a0e14c98a27516a1806df98dd.tar.gz
nextcloud-server-a9e5faf7d001842a0e14c98a27516a1806df98dd.zip
Merge pull request #20981 from owncloud/issue-19848-multiple-emails-for-sharelink
Allow sending a share email to multiple users
Diffstat (limited to 'lib')
-rw-r--r--lib/private/share/mailnotifications.php4
1 files changed, 3 insertions, 1 deletions
diff --git a/lib/private/share/mailnotifications.php b/lib/private/share/mailnotifications.php
index f45d80b37ca..4d282158ba4 100644
--- a/lib/private/share/mailnotifications.php
+++ b/lib/private/share/mailnotifications.php
@@ -176,10 +176,12 @@ class MailNotifications {
$subject = (string)$this->l->t('%s shared »%s« with you', [$this->senderDisplayName, $filename]);
list($htmlBody, $textBody) = $this->createMailBody($filename, $link, $expiration);
+ $recipient = str_replace([', ', '; ', ',', ';', ' '], ',', $recipient);
+ $recipients = explode(',', $recipient);
try {
$message = $this->mailer->createMessage();
$message->setSubject($subject);
- $message->setTo([$recipient]);
+ $message->setTo($recipients);
$message->setHtmlBody($htmlBody);
$message->setPlainBody($textBody);
$message->setFrom([