im trying to get a simple email send using php
the form for getting the info
the php code for processing itHTML Code:<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>
gives me this error and i don't know what its telling me exactlyPHP Code:<?
$to = $_POST['to'];
$re = $_POST['from'];
$comments = $_POST['comments'];
$msg = $comments;
#send mail
$ok = mail($to, $re, $msg);
if($ok) echo "OK"
?>
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 files\easyphp1-8\www\new folder\sendmixed.php on line 8


Reply With Quote
Bookmarks