aboutsummaryrefslogtreecommitdiffstats
path: root/lib/private/Mail
diff options
context:
space:
mode:
authorChristoph Wurst <christoph@winzerhof-wurst.at>2023-06-01 18:07:59 +0200
committerChristoph Wurst <christoph@winzerhof-wurst.at>2023-06-01 18:10:05 +0200
commit7f8f79255830b51bb206658472cb490953f9e839 (patch)
treeadc7eb21350aff1f64df5980bc704c21538434d4 /lib/private/Mail
parent1a3bb23a3791d20b5f29ee6c1a6ecd850ecf9aac (diff)
downloadnextcloud-server-7f8f79255830b51bb206658472cb490953f9e839.tar.gz
nextcloud-server-7f8f79255830b51bb206658472cb490953f9e839.zip
feat(ocp): Allow sending emails with subject and body
Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
Diffstat (limited to 'lib/private/Mail')
-rw-r--r--lib/private/Mail/Message.php13
1 files changed, 0 insertions, 13 deletions
diff --git a/lib/private/Mail/Message.php b/lib/private/Mail/Message.php
index 35d6f96d33a..016340c9692 100644
--- a/lib/private/Mail/Message.php
+++ b/lib/private/Mail/Message.php
@@ -207,11 +207,6 @@ class Message implements IMessage {
return $this->bcc;
}
- /**
- * Set the subject of this message.
- *
- * @return $this
- */
public function setSubject(string $subject): IMessage {
$this->symfonyEmail->subject($subject);
return $this;
@@ -224,10 +219,6 @@ class Message implements IMessage {
return $this->symfonyEmail->getSubject() ?? '';
}
- /**
- * Set the plain-text body of this message.
- * @return $this
- */
public function setPlainBody(string $body): IMessage {
$this->symfonyEmail->text($body);
return $this;
@@ -242,10 +233,6 @@ class Message implements IMessage {
return $body;
}
- /**
- * Set the HTML body of this message. Consider also sending a plain-text body instead of only an HTML one.
- * @return $this
- */
public function setHtmlBody(string $body): IMessage {
if (!$this->plainTextOnly) {
$this->symfonyEmail->html($body);