diff options
Diffstat (limited to 'lib')
-rw-r--r-- | lib/private/mail.php | 5 |
1 files changed, 1 insertions, 4 deletions
diff --git a/lib/private/mail.php b/lib/private/mail.php index 90c3e343199..9605290fe57 100644 --- a/lib/private/mail.php +++ b/lib/private/mail.php @@ -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); |