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

Loading…
Cancel
Save