Browse Source

Email message charset setup added.

tags/2.0.0-alpha
Paul Klimov 12 years ago
parent
commit
75b90205c2
  1. 16
      yii/swiftmailer/Message.php

16
yii/swiftmailer/Message.php

@ -42,6 +42,22 @@ class Message extends BaseMessage
/** /**
* @inheritdoc * @inheritdoc
*/ */
public function setCharset($charset)
{
$this->getSwiftMessage()->setCharset($charset);
}
/**
* @return string the character set of this message.
*/
public function getCharset()
{
return $this->getSwiftMessage()->getCharset();
}
/**
* @inheritdoc
*/
public function setFrom($from) public function setFrom($from)
{ {
$this->getSwiftMessage()->setFrom($from); $this->getSwiftMessage()->setFrom($from);

Loading…
Cancel
Save