mirror of
https://github.com/yiisoft/yii2.git
synced 2025-11-15 13:58:24 +08:00
Merge pull request #1409 from crtlib/patch-1
Broken example of mail component usage
This commit is contained in:
@@ -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();
|
||||||
```
|
```
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user