title: PHP mail using codeigniter email library
body: <p>I want to send emails using <strong>codeigniter</strong> email library. My controller is as follows;</p>
  
  <pre><code>  Class Users extends Controller
  {
      function users()
      {
          parent::Controller();
          $this-&gt;load-&gt;library('email');
      }
      function testmail()
      {
          $this-&gt;email-&gt;to('ajith@toobler.com');
          $this-&gt;email-&gt;from('admin@gaishan.com');
              $this-&gt;email-&gt;subject('Email Cofirmation mail');
          $this-&gt;email-&gt;message('Email Cofirmation mail from Codeignitor');
          if($mail = $this-&gt;email-&gt;send())
              echo 1;
          else
              echo 0;
      }
  }
  </code></pre>
  
  <p>my Email.php placed in <strong>../system/libraries</strong>.Mail is not working.the above program returns 0(fails).Is there any additional configuration need to send a mail.</p>