title: cannot send email using CodeIgniter
body: <p>I was trying sent email using PHP CodeIgniter framework. after i uploaded that file into my browser it didn't show me any error. it said:"Your email was sent successfully". But i didn't get any email in my email account. I could not figure out what was the problem. I am using CodeIgniter version 2.1.3. can anyone please help me. I am new in PHP. Thank You.
  Here is my code:</p>
  
  <pre><code>&lt;?php
  class Email extends CI_Controller
  {
      function __construct()
      {
          parent::__construct();
      }
      function index()
      {
          $this-&gt;load-&gt;library('email');
          $this-&gt;email-&gt;from('hasib32@gmail.com', 'Hasan Hasibul');
          $this-&gt;email-&gt;to('riar32@gmail.com');
          $this-&gt;email-&gt;subject('email test');
          $this-&gt;email-&gt;message('testing the email class. email sent');
          if($this-&gt;email-&gt;send()){
              echo"Your email was sent successfully";
          }else
          {
              show_error($this-&gt;email-&gt;print_debugger());
          }
      }
  }
  </code></pre>