diff options
author | kevin147147 <kevintamool@gmail.com> | 2020-08-23 13:22:06 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-08-23 13:22:06 +0200 |
commit | 120c0feb570a15763339862d5bb4830b053903c2 (patch) | |
tree | 21355f2e9b7486b88e36c4e6c383d1f0196bb4cd /lib/private/Mail | |
parent | d9b9de6d7dce51e0511d3b99e2f2b6d0f72cb3d4 (diff) | |
download | nextcloud-server-120c0feb570a15763339862d5bb4830b053903c2.tar.gz nextcloud-server-120c0feb570a15763339862d5bb4830b053903c2.zip |
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 |