PHP邮件行中断并不总是有效

I have a script that sends mail but sometimes the line breaks work and other times they do not. I have no idea what causes them to break and how to resolve.

This is an example of the type of code I have

$message .= "Name: ".$_POST['name'] . "
";
$message .= "E-mail Address: ".$_POST['email'] . "
";
$message .= "Telephone Number: ".$_POST['telephone'] . "
";
$message .= "Subject: ".$_POST['subject'] . "
";
$message .= "Message: ".$_POST['message']. "
";
$message .= "=========================
";

There is a huge issue with line endings specially when you pass it as a message and even more specially, when you pass it to mail() function.

So as I said in comment, better user normal library and I would personally recommend SwiftMailer. It is now under the wing of such developer as Fabien Potencier, who is main author behind Symfony2, etc.

Try to send mail using swiftmailer or PHPMailer. Here is a good tutorial to use PHPMailer

http://rohitashv.wordpress.com/2013/01/19/how-to-send-mail-using-php/