I\'m using the following to send an email:
Not an answer to the question, but may be of help to someone.
Send a HTML message, and instead of \n, use
.
And use or CSS for preformatted text, thus translating \n to actual new lines.
$headerFields = array(
"From: who@are.you",
"MIME-Version: 1.0",
"Content-Type: text/html;charset=utf-8"
);
mail($to, $subj, $msg, implode("\r\n", $headerFields));