| px | top | add code | search | signup | login | help |
<?PHP
/* ----------------------------------------------------------------------------------------------
Feedback-function by: Rikard Ronnkvist - riro@snowland.nu
I disclaim nothing...nor do I claim anything...
But it would be nice if you included this disclaimer...
---------------------------------------------------------------------------------------------- */
function feedback ($to, $from, $fromname, $subject, $message) {
$extra = "From: \"" . $fromname . "\"<" . $from . ">\n";
$extra = $extra . "Reply-To: " . $from . "\n";
$extra = $extra . "X-Mailer: PHP/" . phpversion();
// - Make's it easy to sort on subject in your inbox.
$subject = "Feedback: " . $subject;
$footer = "\n\n-----------------------------------------------------\n";
$footer = $footer . " USER_AGENT : " . getenv("HTTP_USER_AGENT") . "\n";
$footer = $footer . " REMOTE_ADDR: " . getenv("REMOTE_ADDR") . "\n";
$footer = $footer . " REMOTE_HOST: " . getenv("REMOTE_HOST") . "\n\n";
mail ($to, $subject, $message . $footer, $extra);
}
?>
Comments or questions?
PX is running PHP 5.2.11
Thanks to Miranda Productions for hosting and bandwidth.
Use of any code from PX is at your own risk.