Forum Moderators: coopster
mail("nobody@example.com", "the subject", $message,
"From: webmaster@$SERVER_NAME\r\n"
."Reply-To: webmaster@$SERVER_NAME\r\n"
."X-Mailer: PHP/" . phpversion());
and I've also tried:
mail($to,$subject,$message, "From: webmaster@domain\n Reply-To: webmaster@domain\n");
I keep getting:
From: www.domain.com@mckinley.web.pas.earthlink.net
and the "Return-Path:" is the same. None of my attempts to change it make any difference.
Thanks for your help!
Christian
That way works for me.