我无法从PHP中邮件功能的官方文档中理解这一行:
http://php.net/manual/en/function.mail.php
Each line should be separated with a LF (\n). Lines should not be larger than 70 characters.
更重要的是,在他们的例子中,他们建议做这样的事情:
// The message
$message = "Line 1\nLine 2\nLine 3";
// In case any of our lines are larger than 70 characters, we should use wordwrap()
$message = wordwrap($message, 70);
这是为什么呢?以及 例如 URL 会怎样?它们通常比 70 个字符大得多
如果我们不这样做,我们会遇到什么问题?
谢谢!
最佳答案
有几种方法可以克服 70 个字符的限制,使用 quoted_printable_encode
例如,或熟悉的 base64_encode
。然而,没有多少客户不能处理排长队,尽管如果可以的话最好坚持排长队。
关于PHP 邮件和行不应大于 70 个字符,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/9054708/