PHP new lines in CodeIgniter controller -
can see error following line of code codeigniter controller script - it's part of email script.
the "\n" not appear new lines in email - "\n" raw code itself:
$this->email->message($_post['name'] . " \n" . $_post['email'] . " \n" . $_post['message']);
they enclosed in double-quotes, don't see issue be...
i have done same thing trying (successfully) this:
$msg=" name: ".$this->input->post('name')." email: ".$this->input->post('email')." message: ".$this->input->post('message'); $this->email->message($msg);
hope helped you. if there problem, comment.
Comments
Post a Comment