Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我.$uType. "\n\n";在我的 Pear Mail 中使用文本/html 的联系人类型...我需要添加.$uType. "<br/>";以获取换行符.$uType. "\r\n";吗?
.$uType. "\n\n";
.$uType. "<br/>";
.$uType. "\r\n";
我建议你使用
.$uType. "<br>\n"
<br>由于邮件查看器的兼容性,您应该在其中使用 HTML 3.2/4.0.1(而不是 XHTML)的 HTML 邮件需要该标记。
<br>
当您查看源代码时,这\n将使调试更容易。
\n
这个答案与梨邮件无关,其他邮件库也一样。