I have a problem like this.I want to send a mail from my web application so I put this in my controller.
$from_email = "tharuwan40@gmail.com";
$to_email = "warimali94@gmail.com";
//Load email library
$this->load->library('email');
$this->email->from($from_email, 'Info');
$this->email->to($to_email);
$this->email->subject('Email Test');
$this->email->message('Testing the email class.');
$this->email->send();
This web application is still running on localhost.I tried so many examples in the net and which have been posted in stack overflow tooo.But there was nothing on my mail.Email was not send.How can I get fix this?