From 120c0feb570a15763339862d5bb4830b053903c2 Mon Sep 17 00:00:00 2001 From: kevin147147 Date: Sun, 23 Aug 2020 13:22:06 +0200 Subject: Fix example usage --- lib/private/Mail/Mailer.php | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'lib/private/Mail/Mailer.php') 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 -- cgit v1.2.3