summaryrefslogtreecommitdiffstats
path: root/lib/private/mail/message.php
diff options
context:
space:
mode:
authorLukas Reschke <lukas@owncloud.com>2015-04-10 15:05:34 +0200
committerLukas Reschke <lukas@owncloud.com>2015-04-10 15:05:34 +0200
commita881218fc25c1f650e7b381e3acf2007fdc45c38 (patch)
tree91a6b5dcf5d60132d3ffc808fc41dd1badb86225 /lib/private/mail/message.php
parenta163243e3116a0cf6ca1f186b461336e3fe64e14 (diff)
downloadnextcloud-server-a881218fc25c1f650e7b381e3acf2007fdc45c38.tar.gz
nextcloud-server-a881218fc25c1f650e7b381e3acf2007fdc45c38.zip
Add "Reply-To" support for mails
Diffstat (limited to 'lib/private/mail/message.php')
-rw-r--r--lib/private/mail/message.php22
1 files changed, 22 insertions, 0 deletions
diff --git a/lib/private/mail/message.php b/lib/private/mail/message.php
index 1ae5db4e78a..0fdca49e6d6 100644
--- a/lib/private/mail/message.php
+++ b/lib/private/mail/message.php
@@ -93,6 +93,28 @@ class Message {
}
/**
+ * 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.
*
* @param array $recipients Example: array('recipient@domain.org', 'other@domain.org' => 'A name')