title: Unable to connect to ssl://smtp.googlemail.com:25 while implementing email CodeIgniter lib
body: <p>My log file shows this error:                                                                                        </p>
  
  <pre><code>ERROR - 2016-12-03 03:22:10 --&gt; Severity: Warning --&gt; fsockopen(): SSL operation failed with code 1. OpenSSL Error messages:
  error:140770FC:SSL routines:SSL23_GET_SERVER_HELLO:unknown protocol E:\xampp\htdocs\verime_v11\system\libraries\Email.php 2014
  ERROR - 2016-12-03 03:22:10 --&gt; Severity: Warning --&gt; fsockopen(): Failed to enable crypto E:\xampp\htdocs\verime_v11\system\libraries\Email.php 2014
  ERROR - 2016-12-03 03:22:10 --&gt; Severity: Warning --&gt; fsockopen(): unable to connect to ssl://smtp.googlemail.com:25 (Unknown error) E:\xampp\htdocs\verime_v11\system\libraries\Email.php 2014
  </code></pre>
  
  <p>My code:</p>
  
  <pre><code>$subject      =    $this-&gt;input-&gt;post('subject');
  $name     =    $this-&gt;input-&gt;post('name');
  $email    =    $this-&gt;input-&gt;post('email');
  $feedback  =    $this-&gt;input-&gt;post('feedback');
  $created_date    =    date('Y-m-d');
  
  $insertcontact_array = array(
     'subject'     =&gt; $subject,
     'name'        =&gt; $name,
     'email'       =&gt; $email,
     'feedback'    =&gt; $feedback,
     'created_date'=&gt; $created_date,
  ); 
  
  $config = array(
      'protocol'  =&gt; 'smtp',
      'smtp_host' =&gt; 'ssl://smtp.googlemail.com',
      'smtp_port' =&gt; '25',
      'smtp_user' =&gt; 'firstn870@gmail.com',
      'smtp_pass' =&gt; 'developer'
  );
  
  $this-&gt;load-&gt;library('email',$config);
  $this-&gt;email-&gt;set_newline("\r\n");
  $this-&gt;email-&gt;from($email);
  $this-&gt;email-&gt;to('firstn870@gmail.com');
  $this-&gt;email-&gt;subject($subject);
  $this-&gt;email-&gt;message($feedback);
  
  if($this-&gt;email-&gt;send())
  {
      $result = $this-&gt;db-&gt;insert('tblcontactus', $insertcontact_array);
      if(!empty($result))
      {
          return 1;
      }else
      {
          return 0;
      }
  }else
  {
      show_error($this-&gt;email-&gt;print_debugger());
  }
  </code></pre>
  
  <p>Any help?</p>