How does PHP format echos and emails?
I have just got my first bit of PHP working with a lot of help from thetestingsite.
It sends and email with some information from a form page. Here's a section of the code that I have some questions about:
PHP Code:
mail($email, "Password Reminder", "Password reminder:
Username: ".$username."
Password: monkey
Please login at http://torema.com.br/cases.php", "From: noreply@torema.com.br");
This sends an email with a password reminder in the message body.
Originally I tried it like this using the html tag <br> to format the text...
PHP Code:
mail($email, "Password Reminder", "Password reminder:<br><br>
Username: ".$username."<br>Password: monkey<br><br>
Please login at http://torema.com.br/cases.php", "From: noreply@torema.com.br");
...however the <br> tags showed up in the message body.
Now I'm wondering how to put HTML into a string (terminology?) written by the PHP such as an emails body or an echo.
Thanks,
dog