$this->email->to($this->session->userdata('email1'));
$this->email->subject('Hall-book');
$this->email->message(''.$message['uname'].'');
if ($this->email->send()) {
log_message("info","mail sent");
} else {
log_message("info","mail not sent");
}
If my email, suppose email1
, is wrong email. It should not send the email, else part should be executed, but it's showing the message sent. Please help me for this.