I need to modify this form handling script to return a valid Return-Path: Currently it is anonymous@myserver.com
Because the Return-Path: is anonymous, it won't initiate my auto responder. Therefore, I need to add a valid email address. How can I modify this script to do this? (I am not a PHP programmer and really don't have a clue) Any help would be greatly appreciated.
Thanks,
kman
--------Start Script---------
<?
// Configuration Settings
$SendFrom = "testing Information Request <admin@test.com>";
$SendTo = "test@testing.com";
$SubjectLine = "Feedback Form";
$ThanksURL = "thankyou.html"; //confirmation page
$Divider = "~~~~~~~~~~";
// Build Message Body from Web Form Input
$MsgBody = @gethostbyaddr($REMOTE_ADDR) . "\n$Divider\n";
foreach ($_POST as $Field=>$Value)
$MsgBody .= "$Field: $Value\n";
$MsgBody .= $Divider . "\n" . $HTTP_USER_AGENT . "\n";
$MsgBody = htmlspecialchars($MsgBody); //make content safe
// Send E-Mail and Direct Browser to Confirmation Page
mail($SendTo, $SubjectLine, $MsgBody, "From: " . $SendFrom);
header("Location: $ThanksURL");
?>