title: How to configure php.ini to use gmail as mail server
body: <p>I want to learn yii as my first framework. And I'm trying to make the contact form work. But I got this error:
  <img src="https://i.stack.imgur.com/TIGoN.png" alt="alt text"></p>
  
  <p>I've already configured php.ini file from:</p>
  
  <pre><code>C:\wamp\bin\php\php5.3.0
  </code></pre>
  
  <p>And changed the default to these values:</p>
  
  <pre><code> [mail function]
  ; For Win32 only.
  ; http://php.net/smtp
  SMTP = ssl:smtp.gmail.com
  ; http://php.net/smtp-port
  smtp_port = 23
  
  ; For Win32 only.
  ; http://php.net/sendmail-from
  sendmail_from = myemail@gmail.com
  </code></pre>
  
  <p>I've seen from here that gmail doesn't use port 25, which is the default in the php.ini. So I used 23. And also opened that port in the windows 7 firewall. Via inbound rules.</p>
  
  <p>Then I also edited the main config in my yii application, to match the email that I'm using:</p>
  
  <pre><code>// application-level parameters that can be accessed
      // using Yii::app()-&gt;params['paramName']
      'params'=&gt;array(
          // this is used in contact page
          'adminEmail'=&gt;'myemail@gmail.com',
      ),
  );
  </code></pre>
  
  <p>Finally, I restarted wampserver. Then cleared all my browsing data. Why then to I still see that its pointing out port 25 in the error. Have I miss something? Please help.</p>