Browse Source

Broken example of mail component usage

tags/2.0.0-beta
Paul Kofmann 11 years ago
parent
commit
b375876535
  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