$headers = "From: Anonymous on " . $_SERVER["SERVER_NAME"] . " <$mail>\n"; $subject = "Contact"; $message = ""; while (list($key, $val) = each($HTTP_POST_VARS)) { $message .= "$key : $val\n"; } $message .= "\nSent by " . gethostbyaddr($_SERVER["REMOTE_ADDR"]) . " " . $_SERVER["REMOTE_ADDR"]. "\n"; mail($TO, $subject, $message, $headers);