HI, DOES ANY ONE KNOW WHAT IS THE RIGHT STEPS TO MAKE THIS FORM MAIL TO WORK?
HE IS THE CODE:
1. <html>
2. <head>
3. <title> send mailf from the form </title>
4. </head>
5. <body>
6. <?php
7. echo "<p> your name is: <b>$_POST[name]</b>,</p>";
8. echo "<p> your Email address is: <b>$_POST[email]</b></p>";
9. echo "<p> Your message was: <br>";
10.echo "$_POST[message]</p>";
11. $msg ="Name: $_POST[name]\n";
12. $msg .="Email: $_POST[email]\n";
13. $msg .="message: $_POST[message]\n";
14. $recipient = "ero100@live.com";
15. $mailheaders ="reply-to: $_POST[email]";
16. mail($recipient, $subject, $msg, $mailheaders);
17. ?>
18. </body>
19.</html>
HE IS THE ERROR MESSAGE:
your name is: Mr. Jhonh,
your Email address is: Myemail@hotmail.co.uk
Your message was:
what is this error???? CANT FIGURE IT OUT...
Notice: Undefined variable: subject in C:\wamp\www\phptest\listing9.11.php on line 19
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\phptest\listing9.11.php on line 19