Skip to content

Commit

Permalink
Fixed README
Browse files Browse the repository at this point in the history
  • Loading branch information
vernes committed Feb 2, 2013
1 parent fc83b55 commit eef6811
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -28,8 +28,8 @@ $mail = new YiiMailer('contact', array('message' => 'Message to send', 'name' =>
or
<pre>
$mail = new YiiMailer();
$mail -> setView('contact');
$mail -> setData(array('message' => 'Message to send', 'name' => 'John Doe', 'description' => 'Contact form'));
$mail->setView('contact');
$mail->setData(array('message' => 'Message to send', 'name' => 'John Doe', 'description' => 'Contact form'));
</pre>
Layout is automatically set from config but you may override it with $mail->setLayout('layoutName')

Expand All @@ -55,4 +55,4 @@ if ($mail->Send()) {

## Examples

Two examples included: one for standard contact form in yii webb app and the other one for yii console app.
Two examples included: one for standard contact form in yii web app and the other one for yii console app.

0 comments on commit eef6811

Please sign in to comment.