title: Codeigniter Email Libraries - Undefined property: stdClass::$email
body: <p>i have tested to use email library from Code Igniter in the past and succed. But now, when i test it again i got this following error</p>
  
  <pre><code>Message: Undefined property: Gate::$email
  </code></pre>
  
  <p>Where Gate is the parent class.</p>
  
  <p>This is how i configure the email library in my function</p>
  
  <pre><code>$config['protocol'] = 'mail';
  $config['charset'] = 'iso-8859-1';
  $config['wordwrap'] = TRUE;
  $config['mailtype'] = 'html';
  
  $this-&gt;load-&gt;library('email', $config);
  
  $this-&gt;email-&gt;from('no-reply@xxxx.com', 'xxxx.com');
  $this-&gt;email-&gt;to($mail);
  </code></pre>
  
  <p>The error appear in the line of</p>
  
  <pre><code> $this-&gt;email-&gt;from('no-reply@xxxx.com', 'xxxx.com');
  </code></pre>
  
  <p>From this code, i'm pretty sure it is configured properly.
  If somebody have an idea about this error, please help me to fix this.</p>