|
|
|
@ -37,6 +37,7 @@ class Message extends BaseMessage
|
|
|
|
|
if (!is_object($this->_swiftMessage)) { |
|
|
|
|
$this->_swiftMessage = $this->createSwiftMessage(); |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
return $this->_swiftMessage; |
|
|
|
|
} |
|
|
|
|
|
|
|
|
@ -54,6 +55,7 @@ class Message extends BaseMessage
|
|
|
|
|
public function setCharset($charset) |
|
|
|
|
{ |
|
|
|
|
$this->getSwiftMessage()->setCharset($charset); |
|
|
|
|
|
|
|
|
|
return $this; |
|
|
|
|
} |
|
|
|
|
|
|
|
|
@ -71,6 +73,7 @@ class Message extends BaseMessage
|
|
|
|
|
public function setFrom($from) |
|
|
|
|
{ |
|
|
|
|
$this->getSwiftMessage()->setFrom($from); |
|
|
|
|
|
|
|
|
|
return $this; |
|
|
|
|
} |
|
|
|
|
|
|
|
|
@ -88,6 +91,7 @@ class Message extends BaseMessage
|
|
|
|
|
public function setReplyTo($replyTo) |
|
|
|
|
{ |
|
|
|
|
$this->getSwiftMessage()->setReplyTo($replyTo); |
|
|
|
|
|
|
|
|
|
return $this; |
|
|
|
|
} |
|
|
|
|
|
|
|
|
@ -105,6 +109,7 @@ class Message extends BaseMessage
|
|
|
|
|
public function setTo($to) |
|
|
|
|
{ |
|
|
|
|
$this->getSwiftMessage()->setTo($to); |
|
|
|
|
|
|
|
|
|
return $this; |
|
|
|
|
} |
|
|
|
|
|
|
|
|
@ -122,6 +127,7 @@ class Message extends BaseMessage
|
|
|
|
|
public function setCc($cc) |
|
|
|
|
{ |
|
|
|
|
$this->getSwiftMessage()->setCc($cc); |
|
|
|
|
|
|
|
|
|
return $this; |
|
|
|
|
} |
|
|
|
|
|
|
|
|
@ -139,6 +145,7 @@ class Message extends BaseMessage
|
|
|
|
|
public function setBcc($bcc) |
|
|
|
|
{ |
|
|
|
|
$this->getSwiftMessage()->setBcc($bcc); |
|
|
|
|
|
|
|
|
|
return $this; |
|
|
|
|
} |
|
|
|
|
|
|
|
|
@ -156,6 +163,7 @@ class Message extends BaseMessage
|
|
|
|
|
public function setSubject($subject) |
|
|
|
|
{ |
|
|
|
|
$this->getSwiftMessage()->setSubject($subject); |
|
|
|
|
|
|
|
|
|
return $this; |
|
|
|
|
} |
|
|
|
|
|
|
|
|
@ -165,6 +173,7 @@ class Message extends BaseMessage
|
|
|
|
|
public function setTextBody($text) |
|
|
|
|
{ |
|
|
|
|
$this->setBody($text, 'text/plain'); |
|
|
|
|
|
|
|
|
|
return $this; |
|
|
|
|
} |
|
|
|
|
|
|
|
|
@ -174,6 +183,7 @@ class Message extends BaseMessage
|
|
|
|
|
public function setHtmlBody($html) |
|
|
|
|
{ |
|
|
|
|
$this->setBody($html, 'text/html'); |
|
|
|
|
|
|
|
|
|
return $this; |
|
|
|
|
} |
|
|
|
|
|
|
|
|
@ -236,6 +246,7 @@ class Message extends BaseMessage
|
|
|
|
|
$attachment->setContentType($options['contentType']); |
|
|
|
|
} |
|
|
|
|
$this->getSwiftMessage()->attach($attachment); |
|
|
|
|
|
|
|
|
|
return $this; |
|
|
|
|
} |
|
|
|
|
|
|
|
|
@ -252,6 +263,7 @@ class Message extends BaseMessage
|
|
|
|
|
$attachment->setContentType($options['contentType']); |
|
|
|
|
} |
|
|
|
|
$this->getSwiftMessage()->attach($attachment); |
|
|
|
|
|
|
|
|
|
return $this; |
|
|
|
|
} |
|
|
|
|
|
|
|
|
@ -267,6 +279,7 @@ class Message extends BaseMessage
|
|
|
|
|
if (!empty($options['contentType'])) { |
|
|
|
|
$embedFile->setContentType($options['contentType']); |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
return $this->getSwiftMessage()->embed($embedFile); |
|
|
|
|
} |
|
|
|
|
|
|
|
|
@ -282,6 +295,7 @@ class Message extends BaseMessage
|
|
|
|
|
if (!empty($options['contentType'])) { |
|
|
|
|
$embedFile->setContentType($options['contentType']); |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
return $this->getSwiftMessage()->embed($embedFile); |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|