diff options
author | John Molakvoæ <skjnldsv@users.noreply.github.com> | 2020-10-31 15:58:29 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-10-31 15:58:29 +0100 |
commit | 25a1df9c7e3de58cc443565ee8ecee46cb61d282 (patch) | |
tree | e9f494fc967d596977a1073036deb20436f85669 /lib/private/Mail | |
parent | ccef152fa268c516bf8650f038015782afaaa2e1 (diff) | |
parent | 120c0feb570a15763339862d5bb4830b053903c2 (diff) | |
download | nextcloud-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.php | 6 |
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 |