O.K. DL... Thanks for the reply. And your time. :-{}
Yes. I restarted Apache - it came up the same. It would seem that Apache works along with php4 since I get the enviromental variables, etc. page when I go to: http://localhost/phpinfo.php which was saved as: <? phpinfo() ?> This is exactly what the lines in the [mail function] within my php.ini file looks like: ................... [mail function] SMTP = localhost ;for win32 only sendmail_from = [EMAIL PROTECTED] ;for win32 only ;sendmail_path = ;for unix only, may supply arguments as well (default is sendmail -t) .................... which is what she advises on page 116 of her book. I have inserted: localhost and my e-mail address in the php.ini file. And I took the script - html and php - right off her CD and tested them on a Win98 / Apache / OE 5 and got: ............................ Warning: Failed to Connect in c:\program files\apache group\apache\htdocs\send_simpleform.php on line 19 // This is my php.ini file in WINDOWS [mail function] SMTP = localhost ;for win32 only sendmail_from = [EMAIL PROTECTED] ;for win32 only ;sendmail_path = ;for unix only, may supply arguments as well (default is sendmail -t) .................................... //...and this is the html form: <HTML> <HEAD> <TITLE>Simple Feedback Form</TITLE> </HEAD> <BODY> <FORM METHOD="post" ACTION="send_simpleform.php"> <P><strong>Your Name:</strong><br> <INPUT type="text" NAME="sender_name" SIZE=30></p> <P><strong>Your E-Mail Address:</strong><br> <INPUT type="text" NAME="sender_email" SIZE=30></p> <P><strong>Message:</strong><br> <TEXTAREA NAME="message" COLS=30 ROWS=5 WRAP=virtual></TEXTAREA></p> <P><INPUT TYPE="submit" NAME="submit" VALUE="Send This Form"></p> </FORM> </BODY> </HTML> .............................. //and lastly... this is the php script: <? if (($sender_name == "") && ($sender_email == "") && ($message == "")) { header("Location: http://localhost/simple_form.html"); exit; } $msg = "E-MAIL SENT FROM WWW SITE\n"; $msg .= "Sender's Name: $sender_name\n"; $msg .= "Sender's E-Mail: $sender_email\n"; $msg .= "Message: $message\n\n"; $to = "[EMAIL PROTECTED]"; $subject = "Web Site Feedback"; $mailheaders = "From: My Web Site <> \n"; $mailheaders .= "Reply-To: $sender_email\n\n"; mail($to, $subject, $msg, $mailheaders); ?> <HTML> <HEAD> <TITLE>Simple Feedback Form Sent</TITLE> </HEAD> <BODY> <H1>The following e-mail has been sent:</H1> <P><strong>Your Name:</strong><br> <? echo "$sender_name"; ?> <P><strong>Your E-Mail Address:</strong><br> <? echo "$sender_email"; ?> <P><strong>Message:</strong><br> <? echo "$message"; ?> </BODY> </HTML> ..................................................... ----- Original Message ----- From: "DL Neil" : > Did you restart Apache after changing PHP.INI? > > Please post the mail() section of the script and the mail section of the > PHP.INI. > =dn --- [This E-mail scanned for viruses by gonefishingguideservice.com] -- PHP Windows Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php