I am using HMVC with Codeigniter, with XAAMP on Windows. I am unable to receive even the sample email from the Codeigniter docs. The email->print_debugger() echoes that 'the message has been successfully sent using the following protocol: mail' and everything seems right in the message. However I do not receive them in my inbox (or spam) for my gmail and yahoo accounts. Do I need some additional setup for sending emails? In my controller I have the following function...
public function send_mail() {
$this->load->library('email');
$this->email->from('my_account@gmail.com', 'MyName');
$this->email->to('my_account@yahoo.com');
$this->email->subject('test subject');
$this->email->message('test content');
if($this->email->send()) {
echo $this->email->print_debugger();
echo "success";
} else {
echo $this->email->print_debugger();
echo "failed";
}
}
Thanks