mirror of
https://github.com/yiisoft/yii2.git
synced 2025-11-15 05:45:33 +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
|
||||
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();
|
||||
```
|
||||
|
||||
|
||||
Reference in New Issue
Block a user