diff options
author | Joas Schilling <nickvergessen@owncloud.com> | 2015-12-07 10:49:34 +0100 |
---|---|---|
committer | Joas Schilling <nickvergessen@owncloud.com> | 2015-12-07 10:49:34 +0100 |
commit | 5b87413792416beec851be7ecfcaaf2d5bb933c4 (patch) | |
tree | c8b69c59e0eec31e4f8bd45c6fa34d0c49fe5bf4 /lib/private/share | |
parent | 884946276e13e7949cb2a5a46fd29d342ff386d4 (diff) | |
download | nextcloud-server-5b87413792416beec851be7ecfcaaf2d5bb933c4.tar.gz nextcloud-server-5b87413792416beec851be7ecfcaaf2d5bb933c4.zip |
Allow sending a share email to multiple users
Diffstat (limited to 'lib/private/share')
-rw-r--r-- | lib/private/share/mailnotifications.php | 4 |
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([ |