person x
2008-02-04 04:22:12 UTC
$to = "localhost";
$subject = "Contact Us";
$email = $_REQUEST['email'] ;
$message = $_REQUEST['message'] ;
$headers = "From: $email";
$sent = mail($to, $subject, $message, $headers) ;
?>
but i get this :
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:\wamp\www\mail.php on line 7
i verified the 'SMTP' and "smtp_port" in the php.ini..so whats the problem ..iam using wamp with php 5.2.5.
can i set the variable $to above like :
$to = "anyname@yahoo.com" for example
or $to = "name@localhost"
thanks