summaryrefslogtreecommitdiffstats
path: root/lib/private/Mail
diff options
context:
space:
mode:
authorJohn Molakvoæ <skjnldsv@users.noreply.github.com>2020-10-31 15:58:29 +0100
committerGitHub <noreply@github.com>2020-10-31 15:58:29 +0100
commit25a1df9c7e3de58cc443565ee8ecee46cb61d282 (patch)
treee9f494fc967d596977a1073036deb20436f85669 /lib/private/Mail
parentccef152fa268c516bf8650f038015782afaaa2e1 (diff)
parent120c0feb570a15763339862d5bb4830b053903c2 (diff)
downloadnextcloud-server-25a1df9c7e3de58cc443565ee8ecee46cb61d282.tar.gz
nextcloud-server-25a1df9c7e3de58cc443565ee8ecee46cb61d282.zip
Merge pull request #22373 from nextcloud/fix-example-usage-for-mailer
Fix example usage
Diffstat (limited to 'lib/private/Mail')
-rw-r--r--lib/private/Mail/Mailer.php6
1 files changed, 3 insertions, 3 deletions
diff --git a/lib/private/Mail/Mailer.php b/lib/private/Mail/Mailer.php
index fc8de9ccd0b..b7a22285ea0 100644
--- a/lib/private/Mail/Mailer.php
+++ b/lib/private/Mail/Mailer.php
@@ -59,9 +59,9 @@ use OCP\Mail\Events\BeforeMessageSent;
* $mailer = \OC::$server->getMailer();
* $message = $mailer->createMessage();
* $message->setSubject('Your Subject');
- * $message->setFrom(array('cloud@domain.org' => 'ownCloud Notifier');
- * $message->setTo(array('recipient@domain.org' => 'Recipient');
- * $message->setBody('The message text');
+ * $message->setFrom(array('cloud@domain.org' => 'ownCloud Notifier'));
+ * $message->setTo(array('recipient@domain.org' => 'Recipient'));
+ * $message->setBody('The message text', 'text/html');
* $mailer->send($message);
*
* This message can then be passed to send() of \OC\Mail\Mailer