title: CodeIgniter email does not work when inside config file
body: <p>It turns out that CodeIgniter email doesn't work when I'm having the info to SMTP inside an config file called email.php</p>
  
  <p>It do however work perfectly fine when I'm doing this instead:</p>
  
  <pre><code>$config = array(*smtp info*);
  $this-&gt;load-&gt;library('email', $config);
  </code></pre>
  
  <p>And having the exact same info to the same server as i tried in the config file.
  Could anyone give me a clue why is that?</p>
  
  <p>Ion auth wont sent emails now, so I would prefer to get this config file working. I guess its the problem for that too.</p>
  
  <p><strong>EDIT:</strong> 
  Somehow its working now, not sure why. I tried to change the autoload and made a new email.php config file. I changed the outgoing server to another local one, and its working. But it was still working fine before when i loaded the config directly with the lib load. Not sure why this happened.</p>