How to configure mailer.php to send mail

I have a debian linux box setup with default settings other than installing php4 and apache.

I’m trying to have a simple script email me using a form on an html page. Its a simple form with two text input fields “username” and “password”.

After I click on submit it goes to the mailer.php and lists the standard “thanks for submitting the form”…

HOwever, I dont get an email… How do I configure the mail system in linux to deliver this message??? Or can this be done in the mailer.php file?

<?PHP
$to = “se@packetfocus.com”;
$subject = “This is a test”;
$headers = "From: PacketFocus ";
$forward = “0”;
$location = “packetfocus.com”;
$usernameresults = $_REQUEST[‘username’];
$passwordresults = $_REQUEST[‘password’];
$date = date (“l, F jS, Y”);
$time = date (“h:i A”);
$msg = "Below is the result of your feedback form. It was submitted on $date at $time.

“;
if ($_SERVER[‘REQUEST_METHOD’] == “POST”) {
foreach ($_POST as $key => $value) {
$msg .= ucfirst ($key) .” : ". $value . "
“;
}
}
else {
foreach ($_GET as $key => $value) {
$msg .= ucfirst ($key) .” : ". $value . "
";
}
}
mail($to, $subject, $msg, $headers);
if ($forward == 1) {
header (“Location:$location”);
}
else {
echo “Thank you for submitting our form. We will get back to you as soon as possible.”;
echo “$usernameresults $passwordresults”;
}
?>
~