]> source.dussan.org Git - nextcloud-server.git/commitdiff
remove magic handling of recipient lists by exploding the string - this functionality...
authorThomas Müller <thomas.mueller@tmit.eu>
Mon, 10 Mar 2014 20:56:37 +0000 (21:56 +0100)
committerThomas Müller <thomas.mueller@tmit.eu>
Mon, 10 Mar 2014 20:56:37 +0000 (21:56 +0100)
lib/private/mail.php

index 90c3e34319906f6566655aab2dcb8de375297c2d..9605290fe579154e475fd7010564088203eb7225 100644 (file)
@@ -72,11 +72,8 @@ class OC_Mail {
                $mailo->From = $fromaddress;
                $mailo->FromName = $fromname;;
                $mailo->Sender = $fromaddress;
-               $a=explode(' ', $toaddress);
                try {
-                       foreach($a as $ad) {
-                               $mailo->AddAddress($ad, $toname);
-                       }
+                       $mailo->AddAddress($toaddress, $toname);
 
                        if($ccaddress<>'') $mailo->AddCC($ccaddress, $ccname);
                        if($bcc<>'') $mailo->AddBCC($bcc);