Add "Reply-To" support for mails

This commit is contained in:
Lukas Reschke 2015-04-10 15:05:34 +02:00
parent a163243e31
commit a881218fc2
1 changed files with 22 additions and 0 deletions

View File

@ -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.
*