Davin S
2008-01-18 09:13:15 UTC
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\Project\contact.php on line 12
In the php.ini file i am using the following configurations,
SMTP = smtp.mail.yahoo.com
sendmail_from = davinsamji@yahoo.co.uk
Below is the contact.php file that i have created that should send the file;
$username = $_POST['username'];
$useradd = $_POST['useradd'];
$comments = $_POST['comments'];
$to = "davinsamji@yahoo.co.uk";
$re = "contact us";
$msg = "comments";
$mailheaders = "From: My Site
$mailheaders .= "Reply-To: " .$_POST["useradd"];
mail($to, $re, $msg, $mailheaders);
?>