title: Codeigniter - Sending email
body: <p>i try to send email with codeigniter on localhost.</p>
  
  <p>In order to that, in config directory i open a new php file called email</p>
  
  <p>and write</p>
  
  <pre><code>&lt;?php
  
  $config = Array(
      'protocol' =&gt; 'smtp',
      'smtp_host' =&gt; 'ssl://smtp.googlemail.com',
      'smtp_port' =&gt; 465,
      'smtp_user' =&gt; 'mertmetinbjk@gmail.com',
      'smtp_pass' =&gt; 'pass',
  );
  $this-&gt;load-&gt;library('email', $config);
  
  ?&gt;
  </code></pre>
  
  <p>and in my controller write this</p>
  
  <pre><code>$this-&gt;load-&gt;library('email');
          $this-&gt;email-&gt;from('bildirim@pasaj.com','Pasaj.com');
          $this-&gt;email-&gt;to($email);
          $this-&gt;email-&gt;subject('pasaj hesabinizi aktive etmek icin');
          $this-&gt;email-&gt;message('Tıkla');
          $this-&gt;email-&gt;send();
  </code></pre>
  
  <p>but i get these errors:</p>
  
  <p><img src="https://i.stack.imgur.com/hiNDS.png" alt="enter image description here"></p>
  
  <p>i made some research on the Internet, i read that i have to enable ssl from my php.ini file but there is no line like what can i do ? </p>
  
  <p>TY</p>