Re: A simple PHP form not working

From: Date: Tue, 25 Sep 2001 08:47:14 +0000
Subject: Re: A simple PHP form not working
References: 1 2 3  Groups: php.general 
Request: Send a blank email to php-general+get-68695@lists.php.net to get a copy of this message
you have an l just after the @ sign, it might be an idea to change that, because when it connects, it first does HELO <email> and checks if that user is allowed... ----- Original Message ----- From: "Tshering Norbu" <norbu@druknet.net.bt> To: <php-general@lists.php.net> Sent: Tuesday, September 25, 2001 6:38 PM Subject: Re: [PHP] A simple PHP form not working > Is this the correct mail function config in php.ini ? > > [mail function] > SMTP = smtp01.druk.net.bt ;for win32 only > sendmail_from = norbu@ldruknet.net.bt ;for win32 only > ;sendmail_path = ;for unix only, may supply arguments as well (default > is sendmail -t) > > > Here, I have smtp01.druk.net.bt as my SMTP server which exsits and > norbu@druknet.net.bt as my own just to test. I tried those and still no > luck -:) > > Thank you david. > > NORBU > > > ----- Original Message ----- > From: David Robley <huntsman@www.nisu.flinders.edu.au> > To: Tshering Norbu <norbu@druknet.net.bt>; <php-general@lists.php.net> > Sent: Tuesday, September 25, 2001 12:32 PM > Subject: Re: [PHP] A simple PHP form not working > > > > On Tue, 25 Sep 2001 12:56, Tshering Norbu wrote: > > > Hi list, > > > I can not get the form (from thesitewizard) working. When I submit the > > > form, I get this error: "Warning: Failed to Connect in c:\Program > > > Files\Apache Group\Apache\htdocs/druknet/feedback/feedbacksend.php on > > > line 2." My PHP conf with Apache has no problem. What am I doing > > > wrong? Sorry, I am a beginner in PHP. > > > Here are 2 php files: > > > > > > feedback.html > > > > > > <HTML></BODY> > > > > > > <FORM method=post action="feedbacksend.php"> > > > Email: <INPUT name="email" type="text"><br> > > > Message:<br> > > > <TEXTAREA name="message"> > > > </textarea><br> > > > <input type=submit value=Submit> > > > </FORM> > > > > > > </BODY></HTML> > > > > > > > > > > > > feedbacksend.php > > > > > > <?php > > > mail("norbu@druknet.net.bt", "Feedback Form Results",$message, > > > "From: > > > $email"); > > > ("Location:thankyou.html"); > > > ?> > > > > Line 2 appears to be the mail() function - have you correctly configured > > the mail section of your php.ini? > > > > -- > > David Robley Techno-JoaT, Web Maintainer, Mail List Admin, etc > > CENTRE FOR INJURY STUDIES Flinders University, SOUTH AUSTRALIA > > > > Do the joke. Get the laugh. Move on. > > > -- > PHP General Mailing List (http://www.php.net/) > To unsubscribe, e-mail: php-general-unsubscribe@lists.php.net > For additional commands, e-mail: php-general-help@lists.php.net > To contact the list administrators, e-mail: php-list-admin@lists.php.net >

« previous php.general (#68695) next »