im trying to get a simple email send using php
the form for getting the info
[code=html]<html>
<head><title>send mail</title></head>
<body>
<form method=”POST” enctype=”multipart/form-data” action=”sendmixed.php”>
<table>
<tr><td>To: </td>
<td><input type=”text” name=”to” size=”40″></td>
</tr>
<tr>
<td>From: </td>
<td><input type=”text” name=”from” size=”40″></td>
</tr>
<tr>
<td>Message:</td>
<td><textarea rows=”5″ name=”comments” cols=”33″></textarea></td>
</tr>
<tr><td colspan = “2”><input type=”submit” value=”send” name=”send”></td></tr>
</table>
</form>
</body>
</html>
the php code for processing it
[code=php]<?
$to = $_POST[‘to’];
$re = $_POST[‘from’];
$comments = $_POST[‘comments’];
$msg = $comments;
#send mail
$ok = mail($to, $re, $msg);
if($ok) echo “OK”
?>
gives me this error and i don’t know what its telling me exactly
[quote]
Warning: 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:program fileseasyphp1-8wwwnew foldersendmixed.php on line 8