Fixed bug #17336: Swift Mailer Adapter does not parse To: addresses
authorJigal van Hemert <jigal@xs4all.nl>
Wed, 26 Jan 2011 13:00:48 +0000 (13:00 +0000)
committerJigal van Hemert <jigal@xs4all.nl>
Wed, 26 Jan 2011 13:00:48 +0000 (13:00 +0000)
git-svn-id: https://svn.typo3.org/TYPO3v4/Core/trunk@10332 709f56b5-9817-0410-a4d7-c38de5d9e867

ChangeLog
t3lib/mail/class.t3lib_mail_swiftmaileradapter.php

index 9c784e7..45aade1 100755 (executable)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,7 @@
+2011-01-26  Jigal van Hemert  <jigal@xs4all.nl>
+
+       * Fixed bug #17336: Swift Mailer Adapter does not parse To: addresses 
+
 2011-01-26  Steffen Kamper  <steffen@typo3.org>
 
        * Fixed bug #17319: Incorrect/missing array entries in t3lib_cs regarding Galician and Georgian
index f97e010..996e769 100644 (file)
@@ -79,7 +79,11 @@ class t3lib_mail_SwiftMailerAdapter implements t3lib_mail_MailerAdapter {
                        return TRUE;
                }
                $this->message->setSubject($subject);
-               $this->message->setTo($to);
+                       // handle recipients
+               $toAddresses = $this->parseAddresses($to);
+               if (count($toAddresses) > 0) {
+                       $this->message->setTo($toAddresses);
+               }
                        // handle additional headers
                $headers = t3lib_div::trimExplode(LF, $additionalHeaders, TRUE);
                $this->messageHeaders = $this->message->getHeaders();