Second Question: Where is php.ini. I can't find it even with a search of my drives.
Below is the script I tried and at the bottom the error message I recieved.
Am I doing something wrong?
<HTML>
<HEAD>
</HEAD>
<BODY>
Code: Select all
<?php
@extract($_POST);
$name = stripslashes($name);
$email = stripslashes($email);
$subject = stripslashes($subject);
$text = stripslashes($text);
mail('test@test.com',$subject,$text,"From: $name <$email>");
header("location:form.php");
?></HTML>
Error Message Received:
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:\Phperl2.3\Websites\Site1\www\process.php
Thanks
Jim