When sending a mail, the mailer wraps the mail contents. In HTML5 there is a wrap="soft/hard" parameter which seems to do nothing.
I collect a text via form/textarea, where the user may enter line breaks. If I print it, those are kept:
echo $myText;
produces:
This is line 1
This is line 2
However if I send it via mail:
$headers = 'MIME-Version: 1.0' . "\r\n";
$headers .= 'Content-type: text/html; charset=iso-8859-1' . "\r\n";
mail($to, $subject, $message, $headers);
then my text arrives like this:
This is line 1 This is line 2
What do I do wrong?