Hi
I am having problems getting the form to email to work. Am I missing anything.....There seems to be a problem with line 9 within my php file.
(Error Log >)
[Fri Mar 11 08:52:05 2005] [error] PHP Warning: mail() [<a href='function.mail'>function.mail</a>]: SMTP server response: 553 sorry, you don't authenticate or the domain isn't in the list of allowed rcpthosts in c:\Apache\htdocs\feedback.php on line 9
(Configuration Info)
(php.ini)
SMTP = smtp.company1.com
Sendmail_from = user@company1.com
(feedback.html)
<html>
<head> <title>Feedback Form</title> </head>
<body>
<form action="feedback.php" method="post">
Name:<input type="text" name="username" size="30">
<br> <br>
Email:<input type="text" name="useraddr" size="30">
<br> <br>
<textarea name="comments" cols="30" rows="5">
</textarea><br>
<input type="submit" value="Send Form">
</form>
</body>
</html>
(feedback.php)
<?php
$username = $POST['username'];
$useraddr = $POST['useraddr'];
$comments = $_POST['comments'];
$to = "user@company1.com";
$re = "Website Feedback";
$msg = $comments;
Mail( $to, $re, $msg );
?>
<html>
<head><title>Message Received</title></head>
<body>
<h3>Thanks for your comments</h3>
Message received from <?php echo( $username ); ?>
<br>
Reply to <?php echo( $useraddr ); ?>
</body>
</html>
Please can somebody check to see if I have entered the correct information or missing anything? Also, with regards to email do I need to have a email server to make this work or can I use my microsoft outlook account ?
Russ