summaryrefslogtreecommitdiffstats
path: root/lib/public
diff options
context:
space:
mode:
Diffstat (limited to 'lib/public')
-rw-r--r--lib/public/mail/imailer.php7
1 files 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