如何:带有自定义“Mailed-By”的 PHP Mail()标头?

发布于 2024-12-02 20:59:18 字数 345 浏览 6 评论 0原文

我使用了 -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 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(3

薄情伤 2024-12-09 20:59:18

不能

"Mailed-By: www.xxxx.com"

用 !

使用这个:

 "-f [email protected] "

波斯语:

ف

"-f [email protected] "

੨ ه ه ق ق ف ف ف ف ق ه ف ف ف ه ه ه ه ه ه ه ه ق ف ف ف ف

the

"Mailed-By: www.xxxx.com"

Does not work !

Use this:

 "-f [email protected] "

Persian Language:

کد های قبلی کار نکردند و به جای اون ها از کد

"-f [email protected] "

استفاده کردم و جواب گرفتم... موفق باشید

过去的过去 2024-12-09 20:59:18

尝试改变

"-fwww.xxxx.com"

"Mailed-By: www.xxxx.com"

try to change

"-fwww.xxxx.com"

to

"Mailed-By: www.xxxx.com"
飘过的浮云 2024-12-09 20:59:18

只需将 "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.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文