Browse Source

Merge pull request #1409 from crtlib/patch-1

Broken example of mail component usage
tags/2.0.0-beta
Alexander Makarov 11 years ago
parent
commit
ef51c7b2a5
  1. 6
      extensions/swiftmailer/README.md

6
extensions/swiftmailer/README.md

@ -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();
``` ```

Loading…
Cancel
Save