如何:带有自定义“Mailed-By”的 PHP Mail()标头?
我使用了 -f
标头,就像 mail($to, $subject, $message, $header, "-fwww.xxxx.com")
中一样,但它没有实际上在锻炼。
您可以在我的测试页面测试一下自己 http://arkar.nopayhost.com
我实际上无法“更改”电子邮件中的“邮寄者:www02.nopayhost.com”行。
但(至少)“-f”可以“删除”其默认值“mailed-by:www02.nopayhost.com”。
还有其他办法吗?
I used -f
header as like in mail($to, $subject, $message, $header, "-fwww.xxxx.com")
but it doesn't actually working out.
Here you can test yourself at my testing page http://arkar.nopayhost.com
I can't actually "change" its "mailed-by: www02.nopayhost.com" line inside emails.
But (at least) '-f' can "remove" its default value "mailed-by: www02.nopayhost.com".
Any other way?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(3)
不能
用 !
使用这个:
波斯语:
ف
੨ ه ه ق ق ف ف ف ف ق ه ف ف ف ه ه ه ه ه ه ه ه ق ف ف ف ف
the
Does not work !
Use this:
Persian Language:
کد های قبلی کار نکردند و به جای اون ها از کد
استفاده کردم و جواب گرفتم... موفق باشید
尝试改变
为
try to change
to
只需将
"Mailed-By: www.xxxx.com\r\n"
添加到 $header 的开头即可。确保该行以 \r\n 结尾。您不应该需要 -f 参数。如果不起作用,请发布您到目前为止的代码。Just add
"Mailed-By: www.xxxx.com\r\n"
to the beginning of $header. Make sure the line ends with \r\n. You shouldn't need the -f parameter. Post the code you have so far if that isn't working.