title: 555 5.5.2 Syntax error. gmail's smtp
body: <p>Do you know what is syntax error refering?</p>
  
  <p>Here's the code I'm using cakephp</p>
  
  <pre><code> $User = $this-&gt;User-&gt;read(null,$id);
      $this-&gt;Email-&gt;to = array('name@gmail.com');; 
      $this-&gt;Email-&gt;from = 'name@gmail.com';
      $this-&gt;Email-&gt;subject = 'Welcome to our really cool thing';
      $this-&gt;Email-&gt;template = 'simple_message'; 
  
      $this-&gt;Email-&gt;sendAs = 'both'; 
       $this-&gt;Email-&gt;smtpOptions = array(
          'port'=&gt;'465', 
          'timeout'=&gt;'30',
          'auth' =&gt; true,
          'host' =&gt; 'ssl://smtp.gmail.com',
          'username'=&gt;'name@gmail.com',
          'password'=&gt;'********',
  
     );
      $this-&gt;set('User', $User);
      $this-&gt;Email-&gt;delivery = 'smtp';
      $this-&gt;Email-&gt;send();
  </code></pre>
  
  <p>NOTE: I'm sending the email to myself for test purposes.</p>