diff --git a/lib/private/mail/message.php b/lib/private/mail/message.php index 1ae5db4e78..0fdca49e6d 100644 --- a/lib/private/mail/message.php +++ b/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. *