Add "Reply-To" support for mails
This commit is contained in:
parent
a163243e31
commit
a881218fc2
|
@ -92,6 +92,28 @@ class Message {
|
|||
return $this->swiftMessage->getFrom();
|
||||
}
|
||||
|
||||
/**
|
||||
* Set the Reply-To address of this message
|
||||
*
|
||||
* @param array $addresses
|
||||
* @return $this
|
||||
*/
|
||||
public function setReplyTo(array $addresses) {
|
||||
$addresses = $this->convertAddresses($addresses);
|
||||
|
||||
$this->swiftMessage->setReplyTo($addresses);
|
||||
return $this;
|
||||
}
|
||||
|
||||
/**
|
||||
* Returns the Reply-To address of this message
|
||||
*
|
||||
* @return array
|
||||
*/
|
||||
public function getReplyTo() {
|
||||
return $this->swiftMessage->getReplyTo();
|
||||
}
|
||||
|
||||
/**
|
||||
* Set the to addresses of this message.
|
||||
*
|
||||
|
|
Loading…
Reference in New Issue