Browse Source

Add "Reply-To" support for mails

remotes/origin/poc-doctrine-migrations
Lukas Reschke 11 years ago
parent
commit
a881218fc2
  1. 22
      lib/private/mail/message.php

22
lib/private/mail/message.php

@ -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…
Cancel
Save