Hi, I want to send emails using codeignitor email library.My controller is as follows;
Class Users extends Controller
{
function users()
{
parent::Controller();
$this->load->library('email');
}
function testmail()
{
$this->email->to('[email protected]');
$this->email->from('[email protected]');
$this->email->subject('Email Cofirmation mail');
$this->email->message('Email Cofirmation mail from Codeignitor');
if($mail = $this->email->send())
echo 1;
else
echo 0;
}
}
my Email.php placed in ../system/libraries.Mail is not working.the above program returns 0(fails).Is there any additional configuration need to send a mail.Any help will be appreciable.thanks