title: CakePHP-2.0: How can i send email from a gmail account using CakEmail and SMTP setting?
body: <p>I'm trying to send email from a gmail account using CakEmail and SMTP settings .</p>
  
  <p>It would be nice if someone tell the process step by step what to do .</p>
  
  <p>I have added the following in app/Config/email.php=></p>
  
  <pre><code>&lt;?php
  class EmailConfig {
      public $smtp = array(
          'host' =&gt; 'ssl://smtp.gmail.com',
          'port' =&gt; 465,
          'username' =&gt; 'my@gmail.com',
          'password' =&gt; 'secret'
      );
  }
  </code></pre>
  
  <p>Now how can i send email to any email account from "my@gmail.com" ?</p>
  
  <p>It's CakePHP-2.0</p>