diff options
author | Frédéric Guillot <fred@kanboard.net> | 2014-09-19 15:29:39 +0200 |
---|---|---|
committer | Frédéric Guillot <fred@kanboard.net> | 2014-09-19 15:29:39 +0200 |
commit | 0a9a4ba0393d40f3bcba4e4e531bd0d51d2c3aff (patch) | |
tree | 1fba352c7d43bda85560874f6e14f32bf3f4ffc8 /vendor/swiftmailer/classes/Swift/Transport/AbstractSmtpTransport.php | |
parent | af69070a647c85b2b4de76a415fc8641dc46c2e8 (diff) |
Improve make-archive.sh and update swiftmailer
Diffstat (limited to 'vendor/swiftmailer/classes/Swift/Transport/AbstractSmtpTransport.php')
-rw-r--r-- | vendor/swiftmailer/classes/Swift/Transport/AbstractSmtpTransport.php | 15 |
1 files changed, 2 insertions, 13 deletions
diff --git a/vendor/swiftmailer/classes/Swift/Transport/AbstractSmtpTransport.php b/vendor/swiftmailer/classes/Swift/Transport/AbstractSmtpTransport.php index e5874d28..7771b6bd 100644 --- a/vendor/swiftmailer/classes/Swift/Transport/AbstractSmtpTransport.php +++ b/vendor/swiftmailer/classes/Swift/Transport/AbstractSmtpTransport.php @@ -166,13 +166,13 @@ abstract class Swift_Transport_AbstractSmtpTransport implements Swift_Transport $to = (array) $message->getTo(); $cc = (array) $message->getCc(); + $tos = array_merge($to, $cc); $bcc = (array) $message->getBcc(); $message->setBcc(array()); try { - $sent += $this->_sendTo($message, $reversePath, $to, $failedRecipients); - $sent += $this->_sendCc($message, $reversePath, $cc, $failedRecipients); + $sent += $this->_sendTo($message, $reversePath, $tos, $failedRecipients); $sent += $this->_sendBcc($message, $reversePath, $bcc, $failedRecipients); } catch (Exception $e) { $message->setBcc($bcc); @@ -444,17 +444,6 @@ abstract class Swift_Transport_AbstractSmtpTransport implements Swift_Transport $failedRecipients); } - /** Send a message to the given Cc: recipients */ - private function _sendCc(Swift_Mime_Message $message, $reversePath, array $cc, array &$failedRecipients) - { - if (empty($cc)) { - return 0; - } - - return $this->_doMailTransaction($message, $reversePath, array_keys($cc), - $failedRecipients); - } - /** Send a message to all Bcc: recipients */ private function _sendBcc(Swift_Mime_Message $message, $reversePath, array $bcc, array &$failedRecipients) { |