Commit b3758765 by Paul Kofmann

Broken example of mail component usage

parent 3db7a075
...@@ -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