PDA

View Full Version : Problem with a formmail script


steven
06-11-2007, 07:48 PM
I'm trying to get the formmail script from Matt's Script Archive to work.

Without success so far. :confused: Help needed!

The webpage is www.vancat.org/contact.htm
The code in the form is:
<form method="POST" action="/cgi-bin/formmail.pl" name="feedback" id="feedback">
<input type=hidden name="recipient" value="webmaster@vancat.org">
<input type=hidden name="subject" value="vancat.org feedback">
<input type=hidden name="redirect" value="http//www.vancat.org/feedbackthankyou.htm">

The formmail.pl file is in the cgi-bin directory in the public_html directory, and its file permissions have been set to 5,5,5

In the formmail script the following has been set:

$mailprog = '/usr/bin/sendmail -i -t';

@referers = ('vancat.org','67.159.44.156');

@recipients = ('^webmaster\@vancat\.org');

steven
06-12-2007, 10:20 PM
No opinions?
:confused:

luis.sg
06-13-2007, 04:38 AM
What's the error you get?

steven
06-13-2007, 07:27 AM
Just the "page not found" error page. Click the send button to see. The info contained in the form is not sent to the email address, so it is not simply a case of the redirect page not being found.

If the exact same setup is used, but I leave the @recipients value in the formmail.pl file in its original unset form, then FormMail gives a message that the @recipients value needs to be set correctly. Which does indicate that the formail.pl file is being located by the form.

Josh
06-13-2007, 10:04 AM
I'm not sure & don't use perl, but I'm googling now will post if I see anything that might help.

I know it's different but I did notice the page ..
The requested URL /cgi-bin/http//www.vancat.org/feedbackthankyou.htm was not found on this server.
looks like you just put feedbackthankyou.htm straight into the cgi-bin and set value="feedbackthankyou.htm">

P.s can I just ask what the ^ sign does? thanks