diff options
author | Joas Schilling <nickvergessen@owncloud.com> | 2016-04-25 16:03:20 +0200 |
---|---|---|
committer | Joas Schilling <nickvergessen@owncloud.com> | 2016-04-25 16:03:20 +0200 |
commit | a18c8a7da0551b4afab913c1b60d2f8f9ab154a7 (patch) | |
tree | 1901837b1fdfb8bd8331e6cf03f7933e4376c503 /lib | |
parent | 6d668807fbad660ea741646bc5b6d2d244b3e39b (diff) | |
download | nextcloud-server-a18c8a7da0551b4afab913c1b60d2f8f9ab154a7.tar.gz nextcloud-server-a18c8a7da0551b4afab913c1b60d2f8f9ab154a7.zip |
Fix the syntax and methods in the sample
Diffstat (limited to 'lib')
-rw-r--r-- | lib/public/mail/imailer.php | 7 |
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 |