我使用以下發送電子郵件:換行符在PHP郵件不能正常工作
<php ....
$message = 'Hi '.$fname.', \r\n Your entries for the week of '
.$weekof.' have been reviewed. \r\n Please login and View Weekly reports to see the report and comments. \r\n Thanks, \r\n'.$myname;
mail($to, $subject, $message, $from);
?>
當收到消息時,它不會在「\ r \ n」,但剛開始打印新的一行他們作爲消息的一部分。
我只是試圖在雷鳥3,沒有任何其他客戶端。
謝謝。這個伎倆。 我不知道單引號和雙引號之間有區別。 – ChuckO 2010-06-18 22:19:41
你可以給一個代碼示例嗎? – 2012-10-04 17:24:26