如何:PHP邮件()与自定义“邮件”标题?

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?

try to change

"-fwww.xxxx.com"

to

"Mailed-By: www.xxxx.com"

the

"Mailed-By: www.xxxx.com"

Does not work !

Use this:

 "-f info@yourdomain.com "

Persian Language:

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

"-f info@yourdomain.com "

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

Just add "Mailed-By: www.xxxx.com " to the beginning of $header. Make sure the line ends with . You shouldn't need the -f parameter. Post the code you have so far if that isn't working.