Merge pull request #22373 from nextcloud/fix-example-usage-for-mailer
Fix example usage
This commit is contained in:
commit
25a1df9c7e
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue