title: Cannot send mail with no "From" header ---- codeigniter 3
body: <p>I am working on live server and using codeigniter 3.</p>
  
  <p>i am unable to receive any mail.</p>
  
  <p>When ever i run this code, i am getting the following error</p>
  
  <p>Cannot send mail with no "From" header </p>
  
  <pre><code>        $config = array();
          $config['useragent']           = "CodeIgniter";
          $config['mailpath']            = "/usr/bin/sendmail"; // or "/usr/sbin/sendmail"
          $config['protocol']            = "smtp";
          $config['smtp_host']           = "localhost";
          $config['smtp_port']           = "25";
          $config['mailtype'] = 'html';
          $config['charset']  = 'utf-8';
          $config['newline']  = "\r\n";
          $config['wordwrap'] = TRUE;
  
          $this-&gt;load-&gt;library('email');
  
          $this-&gt;email-&gt;initialize($config);
  
          $this-&gt;email-&gt;from('admin@lucky.com','admin');
          $this-&gt;email-&gt;to('my@gmail.com');
          $this-&gt;email-&gt;cc('my@gmail.com'); 
          $this-&gt;email-&gt;subject('Registration Verification');
          $msg = "Thanks for signing up";
          $this-&gt;email-&gt;message($msg);   
          //$this-&gt;email-&gt;send();
           if (!$this-&gt;email-&gt;send())
          {    
          echo $this-&gt;email-&gt;print_debugger();
          } 
           else{echo 'success';}
  </code></pre>