title: Email Codeigniter Not working
body: <p>I am trying to send an email from my localhost to user regarding for their forgotten password. (Test)
  This function is in my controller</p>
  
  <pre><code>// Send Request Email
  public function send_email()
  {
          $config = Array(
                                          'protocol' =&gt; 'smtp',
                                          'smtp_host' =&gt; 'ssl://smtp.googlemail.com',
                                          'smtp_port' =&gt; 465,
                                          'smtp_user' =&gt; '***@gmail.com', // change it to yours
                                          'smtp_pass' =&gt; '***', // change it to yours
                                          'mailtype' =&gt; 'html',
                                          'charset' =&gt; 'iso-8859-1',
                                          'wordwrap' =&gt; TRUE
                                      );
  
          $message = '';
          $this-&gt;load-&gt;library('email', $config);
          $this-&gt;email-&gt;set_newline("\r\n");
          $this-&gt;email-&gt;from('***@gmail.com', "Mama"); 
          $this-&gt;email-&gt;to('***@gmail.com');
          $this-&gt;email-&gt;subject('Mama Needs You');
          $this-&gt;email-&gt;message($message);
  
          if($this-&gt;email-&gt;send())
          {
                  echo 'Email sent to Mama.';
          }
          else
          {
                  show_error($this-&gt;email-&gt;print_debugger());
          }
  }
  </code></pre>
  
  <p>Once the user enter his email and click the request button, the function above (send_email) will be requested by AJAX call. But the reply is this</p>
  
  <pre><code>A PHP Error was encountered
  </code></pre>
  
  <blockquote>
    <p>Severity: Warning</p>
    
    <p>Message: fsockopen(): 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: 2055</p>
    
    <p>Backtrace:</p>
    
    <p>File: D:\xampp\htdocs\prototype\application\controllers\Manage.php
    Line: 191 Function: send</p>
    
    <p>File: D:\xampp\htdocs\prototype\index.php Line: 315 Function:
    require_once</p>
    
    <p>A PHP Error was encountered Severity: Warning</p>
    
    <p>Message: fsockopen(): Failed to enable crypto</p>
    
    <p>Filename: libraries/Email.php</p>
    
    <p>Line Number: 2055</p>
    
    <p>Backtrace:</p>
    
    <p>File: D:\xampp\htdocs\prototype\application\controllers\Manage.php
    Line: 191 Function: send</p>
    
    <p>File: D:\xampp\htdocs\prototype\index.php Line: 315 Function:
    require_once</p>
    
    <p>A PHP Error was encountered Severity: Warning</p>
    
    <p>Message: fsockopen(): unable to connect to
    ssl://smtp.googlemail.com:465 (Unknown error)</p>
    
    <p>Filename: libraries/Email.php</p>
    
    <p>Line Number: 2055</p>
    
    <p>Backtrace:</p>
    
    <p>File: D:\xampp\htdocs\prototype\application\controllers\Manage.php
    Line: 191 Function: send</p>
    
    <p>File: D:\xampp\htdocs\prototype\index.php Line: 315 Function:
    require_once</p>
  </blockquote>