title: CakePHP send email
body: <p>I've got a problem with sending mail using CakePHP. Everythings giong well, but i didn't receive any single mail , i tired to send to 2 different emails .</p>
  
  <p>//WebsitesController.php</p>
  
  <pre><code>App::uses('AppController','Controller');
  App::uses('CakeEmail','Network/Email');
  class WebsitesController extends AppController
  {
      public $helpers = array('Html','Form','Session');
      public $components = array('Email','Session');
  
  public function contact()
  {
  
      $this-&gt;set('dane',  $this-&gt;Website-&gt;findById(4));        
  }
  public function contact_email()
  { /* all data is taken from contact.ctp, I debuged all data below and it's correct */
      $useremail = $this-&gt;data['Website']['useremail'];
      $usertopic = $this-&gt;data['Website']['usertopic'];
      $usermessage = $this-&gt;data['Website']['usermessage'];
      $Email = new CakeEmail();
      $Email-&gt;from(array($useremail =&gt; ' My Site'));
      $Email-&gt;to('wigan@mail.com');
      $Email-&gt;subject($usertopic); // all data is correct i checked several times
      $Email-&gt;send($usermessage);
      if($Email-&gt;send($usermessage))
      {
          $this-&gt;Session-&gt;setFlash('Mail sent','default',array('class'=&gt;'alert alert-success'));
          return $this-&gt;redirect(array('controller'=&gt;'websites','action'=&gt;'contact'));
      }
      $this-&gt;Session-&gt;setFlash('Problem during sending email','default',array('class'=&gt;'alert alert-warning'));
  }
  }
  </code></pre>
  
  <p>//contact.ctp</p>
  
  <pre><code> &lt;fieldset&gt;
          &lt;?php
              echo $this-&gt;Form-&gt;create('Website',array('controller'=&gt;'websites','action'=&gt;'contact_email'));
              echo $this-&gt;Form-&gt;input('useremail',array('class'=&gt;'form-control'));
              echo $this-&gt;Form-&gt;input('usertopic',array('class'=&gt;'form-control'));
              echo $this-&gt;Form-&gt;input('usermessage',array('class'=&gt;'form-control'));
              echo $this-&gt;Form-&gt;submit('Send',array('class'=&gt;'btn btn-default')); 
              echo $this-&gt;Form-&gt;end(); 
          ?&gt;
      &lt;/fieldset&gt;
  </code></pre>
  
  <p>all seems to be fine, even if statement in function contact_email is approved.</p>
  
  <p>configuration ( i'm working on localhost, xampp, netbeans 7.4)</p>
  
  <pre><code>public $smtp = array(
      'transport' =&gt; 'Smtp',
      'from' =&gt; array('site@localhost' =&gt; 'My Site'),
      'host' =&gt; 'localhost',
      'port' =&gt; 25,
      'timeout' =&gt; 30,
      'username' =&gt; 'user',
      'password' =&gt; 'secret',
      'client' =&gt; null,
      'log' =&gt; false,
      //'charset' =&gt; 'utf-8',
      //'headerCharset' =&gt; 'utf-8',
  );
  </code></pre>