How do I specify who the e-mail is from?
It keeps using the one I set in my php.ini file instead of the one I try to have it use in the handler.
<?
$i=0;
if (!is_array($HTTP_POST_VARS))
return;
reset($HTTP_POST_VARS);
while(list($key, $val) = each($HTTP_POST_VARS)) {
$GLOBALS[$key] = $val;
$val=stripslashes($val);
$message = "$key = $val\n";
}
$message= $unsub;
mail($recipient, $subject, $message, "From: $unsub");
header("Location: $redirect");
?>
It's a very simple script, just can't customize the "From" field in the e-mail.