diff --git a/extensions/swiftmailer/README.md b/extensions/swiftmailer/README.md index 3edd4a4..1830374 100644 --- a/extensions/swiftmailer/README.md +++ b/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(); ```