title: SSL operation failed with code 1 Codeigniter does not send email
body: <blockquote>
    <p>A PHP Error was encountered</p>
  </blockquote>
  
  <p>Severity: Warning</p>
  
  <p>Message: stream_socket_enable_crypto(): SSL operation failed with code 1. OpenSSL Error messages: error:14090086:SSL routines:ssl3_get_server_certificate:certificate verify failed</p>
  
  <p>Filename: libraries/Email.php</p>
  
  <p>Line Number: 1978</p>
  
  <p>Codeigniter does not send e-mail because of this error.</p>
  
  <p>My e-mail code:</p>
  
  <pre><code>$config = Array(
          'protocol'  =&gt; 'smtp',
          'smtp_host' =&gt; 'smtp.gmail.com',
          'smtp_port' =&gt; 587,
          'smtp_crypto' =&gt; 'tls',
          'smtp_user' =&gt; 'asd@gmail.com',
          'smtp_pass' =&gt; 'asd',
          'mailtype'  =&gt; 'html',
          'charset'   =&gt; 'utf-8'
      );
  
      $this-&gt;load-&gt;library('email', $config);
      $this-&gt;email-&gt;set_newline("\r\n");
  
      $this-&gt;email-&gt;from('asd@gmail.com', 'asd');
      $this-&gt;email-&gt;to($asd);
  
      $this-&gt;email-&gt;subject($asd);
      $this-&gt;email-&gt;message($asd);
  
      $this-&gt;email-&gt;send();
  </code></pre>