title: Yii contact form not sending emails
body: <p>Here's my controller action.</p>
  
  <pre><code>public function actionContact()
      {
          $model=new ContactForm;
          if(isset($_POST['ContactForm']))
          {   
              $model-&gt;attributes=$_POST['ContactForm'];
              if($model-&gt;validate())
                  {
                  $headers="From: {$model-&gt;email}\r\nReply-To: {$model-&gt;email}";
                  mail(Yii::app()-&gt;params['adminEmail'],$model-&gt;subject,$model-&gt;body,$headers)`enter code here`;
                  Yii::app()-&gt;user-&gt;setFlash('contact','Thank you for contacting us. We will respond to you as soon as possible.');
                  $this-&gt;refresh();
              }
          }
          $this-&gt;render('contact',array('model'=&gt;$model));
  }
  </code></pre>
  
  <p>It validates the data and shows up the success message. but email isn;t sent to the adminEmail address which is mine.</p>
  
  <p>Thanks.</p>