Browse Source

Getters for 'yii\swiftmailer\Message' fixed.

tags/2.0.0-alpha
Paul Klimov 12 years ago
parent
commit
21140fbd21
  1. 2
      Mailer.php
  2. 14
      Message.php

2
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;

14
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();
}
/**

Loading…
Cancel
Save