title: Error sending an email CakePHP
body: <p>i get "Unknown email configuration 'gmail' " error , while trying to send an email using Cakephp ,is that because i'm sending it from localhost (xampp) ?</p>
  
  <pre><code>if($this-&gt;User-&gt;save($this-&gt;request-&gt;data)){
         $message='Click on the link below to complete registration ';
         $confirmation_link='www.sitename.com/users/verify/t:'.$hash.'/n:'.$this-&gt;data['User']['username'].'';
         App::uses('CakeEmail', 'Network/Email');
         $email = new CakeEmail('gmail');
         $email-&gt;Email-&gt;from = 'myemail@gmail.com';
         $email-&gt;Email-&gt;to=$this-&gt;data['User']['email'];
         $email-&gt;Email-&gt;subject = 'Confirm Registration';
         $email-&gt;Email-&gt;smtpOptions = array(
         'host' =&gt; 'ssl://smtp.gmail.com',
         'port' =&gt; 465,
         'username' =&gt; 'myemail@gmail.com',
         'password' =&gt; 'mypassword',
         'transport' =&gt; 'Smtp'
         );
         $email-&gt;send($message . " " . $confirmation_link);
         $this-&gt;Session-&gt;setFlash(__('you should activate your account'));
         }
  }
  </code></pre>