title: simple mail function not working in codeigniter
body: <p>I have this sending mail code in Codeigniter controller.</p>
  
  <pre><code>$config['useragent'] = 'CodeIgniter';
  $config['protocol'] = 'sendmail';
  $config['mailpath'] = '/usr/sbin/sendmail';
  $config['charset'] = 'utf-8';
  $config['wordwrap'] = TRUE;                    
  $this-&gt;load-&gt;library('email');
  $this-&gt;email-&gt;initialize($config);
  $this-&gt;email-&gt;from('mymail@yahoo.com', 'myname');
  $this-&gt;email-&gt;to('testingmail@gmail.com'); 
  $this-&gt;email-&gt;subject('Email Test');
  $this-&gt;email-&gt;message('Testing .'); 
  $this-&gt;email-&gt;send();
  echo $this-&gt;email-&gt;print_debugger();
  </code></pre>
  
  <p>But it shows <code>unable to send email using PHP mail()</code>. Please help me to solve the issue.</p>