mirror of
https://github.com/yiisoft/yii2.git
synced 2025-11-10 02:13:17 +08:00
Getters for 'yii\swiftmailer\Message' fixed.
This commit is contained in:
@ -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;
|
||||
|
||||
@ -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();
|
||||
}
|
||||
|
||||
/**
|
||||
|
||||
Reference in New Issue
Block a user