I am using Xampp and i am trying to make "email to me form"
would any one tell me that how much alteration require in php.ini ?
Is php.ini exist in Php directory?
Is any other file required alteration as well ?
i have been made two files as below
file no. 1 : is
feedback.html
<html>
<head>
<meta http-equiv="content-type" content="text/html; charset=iso-8859-1">
<meta name="author" content="mazuki">
<title>mail to me at ajmal-mcse@hotmail.com</title>
</head>
<body>
<form method="post" action="sendmail.php">
Email: <input name="email" type="text" /><br />
Message:<br />
<textarea name="message" rows="15" cols="40">
</textarea><br />
<input type="submit" />
</form>
</body>
</html>
.............................file no.2..........is ................................
<?php
$email = $_REQUEST['email'] ;
$message = $_REQUEST['message'] ;
mail( "ajmal-mcse@smskehani.0fees.net", "Feedback Form Results",
$message, "From: $email" );
header( "Location: localhost" );
?>
............... error which i have been observed is ..................
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:\x\htdocs\sendmail.php on line 6
Warning: Cannot modify header information - headers already sent by (output started at C:\x\htdocs\sendmail.php:6) in C:\x\htdocs\sendmail.php on line 7
------------------------------------------.kindly explain me step by step what should i do to resolve this error ... at localhost email to me form ... as i am using win xp ,and xampp .
thanks