I'm currently learning php, I have apache, php, mysql, and a couple other things installed, it was one of those bundle things. So I am readig this tutorial about email forms done in php and I try it myself. My code looks like this:


<?
$name=$_POST['name'];
$email=$_POST['email'];
$comments=$_POST['comments'];
$to="[email protected]";
$message="$name just filled in your comments form. They said:\n$comments\n\nTheir e-mail address was: $email";
if(mail($to,"Comments From Your Site",$message,"From: $email\n")) {
echo "Thanks for your comments.";
} else {
echo "There was a problem sending the mail. Please check that you filled in the form correctly.";
}
?>


I run this code and I get this error:

Warning: mail() [function.mail]: Failed to connect to mailserver at "localhost" port 25, verify your "SMTP" and "smtp_port" setting in php.ini or use ini_set() in C:\apachefriends\xampp\htdocs\phpbitch\mail.php on line 7


Can someone help me out please?

Thanks.