|
Posted by davemitc on 04/18/06 07:21
I am sending a plain text message using this code --- and I can't seem
to control the line breaks for the $message part, I will unexplainably
get a output like
LINE ONE
LINE TWO
LINE THREE LINE FOUR
$from="someone@";
$subject = 'subject';
$message = 'MESSAGE
LINE ONE
LINE TWO
LINE THREE
LINE FOUR.....
etc...
';
$headers = 'From: ' . $from . "\r\n" .
'X-Mailer: PHP/' . phpversion();
mail($owner, $subject, $message, $headers);
How do I control line breaks - or am I parsing this wrong?
Navigation:
[Reply to this message]
|