Commit 85c26332 by Paul Klimov

Doc comments for "MessageInterface" and "MailerInterface" updated.

parent 104cfd7c
......@@ -9,6 +9,15 @@ namespace yii\mail;
/**
* MailerInterface is an interface, which any mailer should apply.
* Mailer creates and sends messages. Also it allows composition of the message
* body via view rendering:
* ~~~php
* Yii::$app->mail->compose('contact/html', ['contactForm' => $form])
* ->from('from@domain.com')
* ->to($form->email)
* ->subject($form->subject)
* ->send();
* ~~~
*
* @see MessageInterface
*
......
......@@ -16,8 +16,8 @@ namespace yii\mail;
* ->from('from@domain.com')
* ->to('to@domain.com')
* ->subject('Message Subject')
* ->renderText('text/view')
* ->renderHtml('html/view')
* ->textBody('Plain text content')
* ->htmlBody('<b>HTML content</b>')
* ->send();
* ~~~
*
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment