Merge pull request #1409 from crtlib/patch-1

Broken example of mail component usage
This commit is contained in:
Alexander Makarov
2013-12-03 03:54:23 -08:00

View File

@@ -20,9 +20,9 @@ You can then send an email as follows:
```php
Yii::$app->mail->compose('contact/html')
->from('from@domain.com')
->to($form->email)
->subject($form->subject)
->setFrom('from@domain.com')
->setTo($form->email)
->setSubject($form->subject)
->send();
```