From 21140fbd212e79481f4426de43e841595d6bca3c Mon Sep 17 00:00:00 2001 From: Paul Klimov Date: Fri, 8 Nov 2013 16:34:35 +0200 Subject: [PATCH] Getters for 'yii\swiftmailer\Message' fixed. --- Mailer.php | 2 +- Message.php | 14 +++++++------- 2 files changed, 8 insertions(+), 8 deletions(-) diff --git a/Mailer.php b/Mailer.php index c00fad6..7c37a3f 100644 --- a/Mailer.php +++ b/Mailer.php @@ -108,7 +108,7 @@ class Mailer extends BaseMailer { $address = $message->getTo(); if (is_array($address)) { - $address = implode(', ', $address); + $address = implode(', ', array_keys($address)); } Yii::trace('Sending email "' . $message->getSubject() . '" to "' . $address . '"', __METHOD__); return $this->getSwiftMailer()->send($message->getSwiftMessage()) > 0; diff --git a/Message.php b/Message.php index 067b50e..bc9c14a 100644 --- a/Message.php +++ b/Message.php @@ -44,7 +44,7 @@ class Message extends BaseMessage */ public function getCharset() { - $this->getSwiftMessage()->getCharset(); + return $this->getSwiftMessage()->getCharset(); } /** @@ -61,7 +61,7 @@ class Message extends BaseMessage */ public function getFrom() { - $this->getSwiftMessage()->getFrom(); + return $this->getSwiftMessage()->getFrom(); } /** @@ -78,7 +78,7 @@ class Message extends BaseMessage */ public function getReplyTo() { - $this->getSwiftMessage()->getReplyTo(); + return $this->getSwiftMessage()->getReplyTo(); } /** @@ -95,7 +95,7 @@ class Message extends BaseMessage */ public function getTo() { - $this->getSwiftMessage()->getTo(); + return $this->getSwiftMessage()->getTo(); } /** @@ -112,7 +112,7 @@ class Message extends BaseMessage */ public function getCc() { - $this->getSwiftMessage()->getCc(); + return $this->getSwiftMessage()->getCc(); } /** @@ -129,7 +129,7 @@ class Message extends BaseMessage */ public function getBcc() { - $this->getSwiftMessage()->getBcc(); + return $this->getSwiftMessage()->getBcc(); } /** @@ -146,7 +146,7 @@ class Message extends BaseMessage */ public function getSubject() { - $this->getSwiftMessage()->getSubject(); + return $this->getSwiftMessage()->getSubject(); } /**