From a18c8a7da0551b4afab913c1b60d2f8f9ab154a7 Mon Sep 17 00:00:00 2001
From: Joas Schilling <nickvergessen@owncloud.com>
Date: Mon, 25 Apr 2016 16:03:20 +0200
Subject: [PATCH] Fix the syntax and methods in the sample

---
 lib/public/mail/imailer.php | 7 ++++---
 1 file changed, 4 insertions(+), 3 deletions(-)

diff --git a/lib/public/mail/imailer.php b/lib/public/mail/imailer.php
index 61eb895752b..e3c751277ac 100644
--- a/lib/public/mail/imailer.php
+++ b/lib/public/mail/imailer.php
@@ -32,9 +32,10 @@ use OC\Mail\Message;
  * 	$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(['cloud@domain.org' => 'ownCloud Notifier']);
+ * 	$message->setTo(['recipient@domain.org' => 'Recipient']);
+ * 	$message->setPlainBody('The message text');
+ * 	$message->setHtmlBody('The <strong>message</strong> text');
  * 	$mailer->send($message);
  *
  * This message can then be passed to send() of \OC\Mail\Mailer
-- 
GitLab