Welcome Guest, Not a member yet? Register   Sign In
How to get new lines in email message body generated by sendmail protocol
#1

[eluser]landitus[/eluser]
Hi to all, I'm trying to get a tidy email message body where each contact form item is presented in a line.
I have this code, I'm using sendmail:

Code:
$this->email->message(
                  'Nombre:'.$this->input->post('Nombre').
                  '\n Apellido:'.$this->input->post('apellido').
                  '\n E-mail:'.$this->input->post('email').
                  '\n Telefono:'.$this->input->post('telefono').
                  '\n Mensaje:'.$this->input->post('comentario'));

But the body is all showed in a single line, making it difficult to read. I hope someone can help me with this.




Theme © iAndrew 2016 - Forum software by © MyBB