-1
$e_body = "You have been contacted by $Name from the xxxxx contact forms. Their message is as follows:"."\r\n";
$e_content = "\"$Message\""."\r\n";
$e_reply = "You can contact $Name via email, $Email";
$msg = wordwrap($e_body . $e_content . $e_reply, 70);
php mailer code
$mail->Subject = "$appName Contact Forms";
$mail->Body = $msg;
看起來「\ r \ n」只是不起作用。它不會移動到下一行。我究竟做錯了什麼。任何幫助? 謝謝!發送的郵件中的下一行不起作用
我試過用html
代替\ r \ n。因此代碼讀取
$e_body = "You have been contacted by $Name from xxxx contact forms. Their message is as follows:"; echo "<br/><br/>";
$e_content = "\"$Message\""; echo "<br/><br/>";
$e_reply = "You can contact $Name via email, $Email";
$msg = wordwrap($e_body . $e_content . $e_reply, 70);
但是這也不起作用。請問這裏有什麼不對。任何幫助?
你可以試試
標籤可以幫助你。 –
如果是控制檯,它應該在瀏覽器中工作,嘗試用'
' –