There also appears to be a problem with the header, although its nothing i can see.
here is the code
Code: Select all
<?
$name=$_REQUESTї'name'];
$email=$_REQUESTї'email'];
$comments=$_REQUESTї'comments'];
$to="e;me@yahoo.co.uk"e;;
$message="e;$name just filled in your comments form. They said:\n$comments\n\nTheir e-mail address was: $email"e;;
(mail($to,"e;Practice Feedback form "e;,$message,"e;From: $email\n"e;));
header ( "e;Location: http://localhost/contact_redirect.html"e; );
?>Code: Select all
Warning: mail(): Failed to connect to mailserver at "e;localhost"e; port 25, verify your "e;SMTP"e; and "e;smtp_port"e; setting in php.ini or use ini_set() in c:\inetpub\wwwroot\PHP\mail.php on line 12
Warning: Cannot modify header information - headers already sent by (output started at c:\inetpub\wwwroot\PHP\mail.php:12) in c:\inetpub\wwwroot\PHP\mail.php on line 13