aboutsummaryrefslogtreecommitdiffstats
path: root/lib/public
diff options
context:
space:
mode:
authorChristoph Wurst <ChristophWurst@users.noreply.github.com>2023-06-02 09:14:46 +0200
committerGitHub <noreply@github.com>2023-06-02 09:14:46 +0200
commitc0263b91d423d92ded984d71305304912a372aee (patch)
tree9ffd9a6a723c5d9a056aee9157e138b298e194a6 /lib/public
parent5591da0b33f4f4ce50f289318c49595e116ba4a3 (diff)
parent7f8f79255830b51bb206658472cb490953f9e839 (diff)
downloadnextcloud-server-c0263b91d423d92ded984d71305304912a372aee.tar.gz
nextcloud-server-c0263b91d423d92ded984d71305304912a372aee.zip
Merge pull request #38585 from nextcloud/feature/ocp/send-message-with-subject-body
feat(ocp): Allow sending emails with subject and body
Diffstat (limited to 'lib/public')
-rw-r--r--lib/public/Mail/IMessage.php30
1 files changed, 30 insertions, 0 deletions
diff --git a/lib/public/Mail/IMessage.php b/lib/public/Mail/IMessage.php
index 08545138d37..bd96918c7ac 100644
--- a/lib/public/Mail/IMessage.php
+++ b/lib/public/Mail/IMessage.php
@@ -33,6 +33,36 @@ namespace OCP\Mail;
*/
interface IMessage {
/**
+ * Set the subject of this message
+ *
+ * @param string $subject
+ *
+ * @return self
+ * @since 28.0.0
+ */
+ public function setSubject(string $subject): IMessage;
+
+ /**
+ * Set the plain-text body of this message
+ *
+ * @param string $body
+ *
+ * @return self
+ * @since 28.0.0
+ */
+ public function setPlainBody(string $body): IMessage;
+
+ /**
+ * Set the HTML body of this message. Consider also sending a plain-text body instead of only an HTML one.
+ *
+ * @param string $body
+ *
+ * @return self
+ * @since 28.0.0
+ */
+ public function setHtmlBody(string $body): IMessage;
+
+ /**
* @param IAttachment $attachment
* @return IMessage
* @since 13.0.0