Commit ef51c7b2 by Alexander Makarov

Merge pull request #1409 from crtlib/patch-1

Broken example of mail component usage
parents 3db7a075 b3758765
...@@ -20,9 +20,9 @@ You can then send an email as follows: ...@@ -20,9 +20,9 @@ You can then send an email as follows:
```php ```php
Yii::$app->mail->compose('contact/html') Yii::$app->mail->compose('contact/html')
->from('from@domain.com') ->setFrom('from@domain.com')
->to($form->email) ->setTo($form->email)
->subject($form->subject) ->setSubject($form->subject)
->send(); ->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