title: CakePHP SMTP Connection timed out
body: <p>I know there is a load of questions about this topic, but still can't figure out what is going wrong. </p>
  
  <p>Here's my code:</p>
  
  <pre><code>                $this-&gt;Email-&gt;to = 'any@mailadress.com';
                  $this-&gt;Email-&gt;subject = 'any subject';
                  $this-&gt;Email-&gt;replyTo = 'noreply@mailadress.com';
                  $this-&gt;Email-&gt;from = 'Somebody &lt;noreply@mailadress.com&gt;';
                  $this-&gt;Email-&gt;additionalParams = '-fnoreply@mailadress.com';
                  $this-&gt;Email-&gt;template = 'my_template';
                  $this-&gt;Email-&gt;sendAs = 'text';
                  $this-&gt;Email-&gt;smtpOptions = array(
                      'port'=&gt;'465',
                      'timeout'=&gt;'30',
                      'host' =&gt; 'ssl://smtp.googlemail.com', // also tried smtp.gmail.com
                      'username'=&gt;'username',
                      'password'=&gt;'pass',
                      );
                  $this-&gt;Email-&gt;send();
  </code></pre>
  
  <p>Now this leads to nothing but "Connection timed out: 110". I tried several other mailing services. Always get the connection error. </p>
  
  <p>Help very much appreciated.</p>