我遇到一個奇怪的問題,難以診斷,因爲
它是隨機的。我已經構建了一個應用程序發送一個電子郵件
很好的文字量(沒有確切的字符數,但可以得到它)。電子郵件中的空白問題
在html電子郵件中,內容中隨機出現一個空格。
請參閱以下的空間如何飄蕩,是隨機的例子:
1- "Th ere are several things being discussed in this email."
2- "There are se veral things being discussed in this email."
3- "There are severa l things being discussed in this email."
這whitepace問題也發生了聯繫。到目前爲止,在hotmail和gmail中發現了這個問題。
有人有什麼想法嗎?
$ header =「MIME-Version:1.0 \ r \ n」;
$ header。=「Content-type:text/html; charset = utf-8 \ r \ n」;
$ header。=「From:abc \ r \ n」;
$ subject =「abc」;
$ mail_body =「Hello!」;
$ mail_body。=「content」;
郵件($ email_address,$ subject,$ mail_body,$ header);
也就是說代碼給你一個想法大致..
嗨特里...我剛剛發佈了示例代碼給你一個想法.. – rico 2009-11-24 03:59:49
那麼你的僞代碼似乎沒有問題。修改答案以允許格式化。 – 2009-11-24 04:15:00