From b375876535f1ed89f7c0c287fb5be5bc8849c86e Mon Sep 17 00:00:00 2001 From: Paul Kofmann Date: Tue, 3 Dec 2013 12:49:40 +0100 Subject: [PATCH] Broken example of mail component usage --- extensions/swiftmailer/README.md | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) 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(); ```