脚本宝典收集整理的这篇文章主要介绍了PHP邮件: – 做什么?,脚本宝典觉得挺不错的,现在分享给大家,也给大家做个参考。
示例代码:
mail($emailAddress,$mailSubject,$mailBody,$headers,'-f ' . $mailFrom);
PS:没有“-f”,它对于大型电子邮件主机(hotmail,gmail等,但无论什么原因都不适用于我正在使用的较小的主机)工作正常
谢谢
这是man page for sendmail,你可以看到-f选项是什么:
-fname Sets the name of the ``from'' PErson (i.e.,the sender of the mail). -f can only be used by ``trusted'' users (normally root,daemon,and network) or if the person you are trying to become is the same as the person you are.
以上是脚本宝典为你收集整理的PHP邮件: – 做什么?全部内容,希望文章能够帮你解决PHP邮件: – 做什么?所遇到的问题。
本图文内容来源于网友网络收集整理提供,作为学习参考使用,版权属于原作者。
如您有任何意见或建议可联系处理。小编QQ:384754419,请注明来意。