I am trying to concatenate a php new line with variables, and, searching in Stack Overflow I found the vai to concatenate variables and put new line, so I have done this:
$mail->Body = "<br />".$message."<br />"." - ".$email." -".$name;
But the email arrive like this:
<br />MessageOftheperson<br /> - example@gmail.com -NameOfThePerson
I would like it to be:
MessageOfThePerson
example@gmail.com -NameOfThePerson
How can I do this?
The code you've written will do a newline in HTML.
You can use "\n".