title: Getting not configured error while sending email in php-codeigniter
body: <p>Please see my email sending code below and it is showing the following error while sending the email..</p>
  
  <blockquote>
    <p>Unable to send email using PHP mail(). Your server might not be configured to send mail using this method.</p>
  </blockquote>
  
  <p>My Controller:</p>
  
  <pre><code> $from_email= "******"; 
   $to_email = 'dummy@dummy.com';
   $subject='Password Reset Request';
   $htmlContent = '&lt;p&gt;'.$link.'&lt;/p&gt;';
       $this-&gt;load-&gt;library('email'); 
       $config['mailtype'] = 'html';
       $this-&gt;email-&gt;initialize($config);
       $this-&gt;email-&gt;set_newline("\r\n"); 
       $this-&gt;email-&gt;from($from_email,'*****'); 
       $this-&gt;email-&gt;to($to_email);
       $this-&gt;email-&gt;subject($subject); 
       $this-&gt;email-&gt;message($htmlContent);           
       $this-&gt;email-&gt;send();
  </code></pre>
  
  <p>This condition is showing the above error. Actually, it was working fine initially in development stage, but now it is not..What could have gone wrong in this query...Thank you in advance..</p>