开发者

How to: PHP Mail() with Custom "Mailed-By" Header?

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" lin开发者_StackOverflowe inside emails.

But (at least) '-f' can "remove" its default value "mailed-by: www02.nopayhost.com".

Any other way?


the

"Mailed-By: www.xxxx.com"

Does not work !

Use this:

 "-f info@yourdomain.com "

Persian Language:

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

"-f info@yourdomain.com "

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


try to change

"-fwww.xxxx.com"

to

"Mailed-By: www.xxxx.com"


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.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜