hi im using a program called wamp which runs php and mysql and apache enviroment on your home pc so you can set up and build php pages with out using a online server all ways going well till i had to make a form which sends an email,
for this i have to set php with relevant
this is the error message i get
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()
i assume i require a email address to use as a receiving email and smpt settings i do not know wat smpt is ,
when the wamp server asks for me these details what should i put it
in basic i just want the mail fuction to work
just for the sake of it i have added the code here too
<?php
//create short variable names
$name=$POST['name'];
$email=$POST['email'];
$feedback=$_POST['feedback'];
//set up some static information
$toaddress = "feedback@example.com";
$subject = "Feedback from web site";
$mailcontent = "Customer name: ".$name."\n".
"Customer email: ".$email."\n".
"Customer comments:\n".$feedback."\n";
$fromaddress = "From: webserver@example.com";
//invoke mail() function to send mail
mail($toaddress, $subject, $mailcontent, $fromaddress);
?>
<html>
<head>
<title>Bob's Auto Parts - Feedback Submitted</title>
</head>
<body>
<h1>Feedback submitted</h1>
<p>Your feedback has been sent.</p>
</body>
</html>
thanks guys once mail() is set up i should be ready to fly 😃