title: CodeIgniter unable to send email using PHP mail()
body: <p>I'm trying to send an e-mail with Codeigniter like this:</p>
  
  <pre><code>$this-&gt;load-&gt;library('email');
  
  $this-&gt;email-&gt;from("myemail@email.com");
  $this-&gt;email-&gt;reply_to("myemail@email.com");
  $this-&gt;email-&gt;to("myemail@email.com");
  $this-&gt;email-&gt;subject("Test mail");
  $this-&gt;email-&gt;message("Email body");
  $this-&gt;email-&gt;set_alt_message("Email body txt");
  $this-&gt;email-&gt;send();
  </code></pre>
  
  <p>and I got this on the email debugger: Unable to send email using PHP mail().  Your server might not be configured to send mail using this method.</p>
  
  <p>If I do e simple PHP mail() function with the same addresses, it works but when I use CodeIgniter it gives me the error. So why would it work with simple mail() but not with CodeIgniter ? Any ideas ?</p>
  
  <p>Thanks.</p>