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:\xampp\htdocs\cart\processfeedback.php on line 15..
my php code is
<?php
$name = $_POST['name'];
$email = $_POST['email'];
$feedback = $_POST['feedback'];
$toaddress = "sam.abey@rocketmail.com";
$subject = "Feedback from the web site";
$mailcontent = "customer name: " . $name . "\n";
"customer email: " . $email . "\n";
"customer comment: \n" . $feedback . "\n";
$fromaddress = "From: sam.abey@rocketmail.com";
mail($toaddress, $subject, $mailcontent, $fromaddress);
?>
<html>
<head>
<title>process feedback</title>
</head>
<body>
<p>Feedback sent</p>
</body>
</html>