title: Message: fsockopen(): unable to connect to ssl://smtp.gmail.com:465 (Connection timed out)
body: <p>i am trying to send email using codeigniter email class but i am getting error Message: fsockopen(): unable to connect to ssl://smtp.gmail.com:465 (Connection timed out)</p>
  
  <pre><code>public function index()
       {
       $this-&gt;load-&gt;helper('form');
      $this-&gt;load-&gt;view('sellerend/seller_signup.php');
         $config = array(
          'protocol' =&gt; 'smtp',
          'smtp_host' =&gt; 'ssl://smtp.gmail.com',
          'smtp_port' =&gt; '465',
          'smtp_user' =&gt; 'myemail@gmail.com',
          'smtp_pass' =&gt; 'mypassword',
          'mailtype'  =&gt; 'html', 
          'charset'   =&gt; 'iso-8859-1'
          );
  
      $this-&gt;load-&gt;library('email',$config);
      $this-&gt;email-&gt;initialize($config);
      $this-&gt;email-&gt;set_newline("\r\n");
      $this-&gt;email-&gt;from('myemail@gmail.com','my name');
      $this-&gt;email-&gt;to('ashurenu1993@gmail.com');
      $this-&gt;email-&gt;message('its working bro');
      if ($this-&gt;email-&gt;send())
      {
          echo "hi its works";
      }
      else
      {
          show_error($this-&gt;email-&gt;print_debugger());
      }
  }
  </code></pre>