title: Send mail with Zend_Mail through Gmail smtp server
body: <p>I'd like to use <strong>Gmail</strong> smtp server to send email with <strong>Zend_Mail</strong>. I had this code</p>
  
  <pre><code>Zend_Mail::setDefaultTransport(new Zend_Mail_Transport_Smtp("smtp.googlemail.com", array(
      "auth" =&gt; "login",
      "username" =&gt; "myusername@gmail.com",
      "password" =&gt; "mypassword",
      "ssl" =&gt; "ssl",
      "port" =&gt; 465
  )));
  </code></pre>
  
  <p>but when I try to send an email it throws an Exception with message <strong>Connection refused</strong>.</p>
  
  <p>Where I'm wrong?</p>