|
|
@ -49,6 +49,14 @@ class Message extends BaseMessage |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
/** |
|
|
|
/** |
|
|
|
|
|
|
|
* @return string from address of this message. |
|
|
|
|
|
|
|
*/ |
|
|
|
|
|
|
|
public function getFrom() |
|
|
|
|
|
|
|
{ |
|
|
|
|
|
|
|
return $this->getSwiftMessage()->getFrom(); |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
/** |
|
|
|
* @inheritdoc |
|
|
|
* @inheritdoc |
|
|
|
*/ |
|
|
|
*/ |
|
|
|
public function setTo($to) |
|
|
|
public function setTo($to) |
|
|
@ -57,6 +65,14 @@ class Message extends BaseMessage |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
/** |
|
|
|
/** |
|
|
|
|
|
|
|
* @return array To addresses of this message. |
|
|
|
|
|
|
|
*/ |
|
|
|
|
|
|
|
public function getTo() |
|
|
|
|
|
|
|
{ |
|
|
|
|
|
|
|
return $this->getSwiftMessage()->getTo(); |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
/** |
|
|
|
* @inheritdoc |
|
|
|
* @inheritdoc |
|
|
|
*/ |
|
|
|
*/ |
|
|
|
public function setCc($cc) |
|
|
|
public function setCc($cc) |
|
|
@ -65,6 +81,14 @@ class Message extends BaseMessage |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
/** |
|
|
|
/** |
|
|
|
|
|
|
|
* @return array Cc address of this message. |
|
|
|
|
|
|
|
*/ |
|
|
|
|
|
|
|
public function getCc() |
|
|
|
|
|
|
|
{ |
|
|
|
|
|
|
|
return $this->getSwiftMessage()->getCc(); |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
/** |
|
|
|
* @inheritdoc |
|
|
|
* @inheritdoc |
|
|
|
*/ |
|
|
|
*/ |
|
|
|
public function setBcc($bcc) |
|
|
|
public function setBcc($bcc) |
|
|
@ -73,6 +97,14 @@ class Message extends BaseMessage |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
/** |
|
|
|
/** |
|
|
|
|
|
|
|
* @return array Bcc addresses of this message. |
|
|
|
|
|
|
|
*/ |
|
|
|
|
|
|
|
public function getBcc() |
|
|
|
|
|
|
|
{ |
|
|
|
|
|
|
|
return $this->getSwiftMessage()->getBcc(); |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
/** |
|
|
|
* @inheritdoc |
|
|
|
* @inheritdoc |
|
|
|
*/ |
|
|
|
*/ |
|
|
|
public function setSubject($subject) |
|
|
|
public function setSubject($subject) |
|
|
@ -81,6 +113,14 @@ class Message extends BaseMessage |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
/** |
|
|
|
/** |
|
|
|
|
|
|
|
* @return string the subject of this message. |
|
|
|
|
|
|
|
*/ |
|
|
|
|
|
|
|
public function getSubject() |
|
|
|
|
|
|
|
{ |
|
|
|
|
|
|
|
return $this->getSwiftMessage()->getSubject(); |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
/** |
|
|
|
* @inheritdoc |
|
|
|
* @inheritdoc |
|
|
|
*/ |
|
|
|
*/ |
|
|
|
public function setText($text) |
|
|
|
public function setText($text) |
|
|
@ -123,4 +163,12 @@ class Message extends BaseMessage |
|
|
|
$attachment = \Swift_Attachment::newInstance($content, $fileName, $contentType); |
|
|
|
$attachment = \Swift_Attachment::newInstance($content, $fileName, $contentType); |
|
|
|
$this->getSwiftMessage()->attach($attachment); |
|
|
|
$this->getSwiftMessage()->attach($attachment); |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
/** |
|
|
|
|
|
|
|
* @inheritdoc |
|
|
|
|
|
|
|
*/ |
|
|
|
|
|
|
|
public function __toString() |
|
|
|
|
|
|
|
{ |
|
|
|
|
|
|
|
return $this->getSwiftMessage()->toString(); |
|
|
|
|
|
|
|
} |
|
|
|
} |
|
|
|
} |