Click to See Complete Forum and Search --> : FormMail help


ncriptide
04-21-2005, 10:02 AM
Cannot get a response form to work on a site I just uploaded. I'm still very new at this - if anyone can offer any suggestions, it would be greatly appreciated.

I uploaded FormMail to my Interland VPS server in the cgi-bin of a virtual host I have setup called dbcfoundation.org. Below is the path and the information where FormMail is located:

File Path: ftp://usr122057130:@sumnergroup.com/%2fusr/local/www/vhosts/dbcfoundation.org/cgi-bin/FormMail.pl

Below is the info I entered on the FormMail form (per Interland's setup instructions for FormMail):

$mailprog = '/usr/sbin/sendmail -i -t -f
rbyrum@sumnergroup.com';

@referers = ('dbcfoundation.org','216.122.57.130');

Below is the info I entered on the html form:

<form action="http://dbcfoundation.org/cgi-bin/FormMail.pl" method="POST" name="intentlttr" id="intentlttr">
<input type=hidden name="recipient" value="rbyrum@sumnergroup.com">
<input type=hidden name="subject" value="Letter of Intent">

Okay - let me have it - WHAT DID I DO WRONG???

ncriptide
04-21-2005, 01:04 PM
Problem Resolved!

But can someone please explain the solution?

FormMail resides on my Interland VPS server in the cgi-bin. The name of the script is: FormMail (capital "F", capital "M").pl.

When I set up my action on my html form, I had it set as Action=". . . /cgi-bin/FormMail.pl" Yet- I could not get the form to work.

Someone on another forum suggested that I change the action to:
Action=". . . /cgi-bin/formmail.pl" (lowercase formmail).

Even though it did not match case-wise to what resided on the server, that solved my problems. FormMail works correctly.

What's up with that?!? I thought it was "case-sensitive" and the technical support at Interland said it was case-sensitive. . . . any idea?

ncriptide
04-21-2005, 01:54 PM
Sorry guys - I was wrong. While I was doing all the above, the excellent technical support technician at Interland was working on my problem and what I thought fixed it - actually didn't. I hadn't cleared my cache so I didn't get the change (or solution) I thought I did.

Here's the final solution for anyone out there that may be experiencing the same type problems:

1. The FormMail doc in your server's cgi-bin MUST match what you list in your html form. If it's FormMail.pl on the server, it HAS to be FormMail.pl (case-sensitive) in your html. If its "formmail.pl" on your server, it needs to be Action=". . . /cgi-bin/formmail.pl in your html form.

2. Where I went wrong was that I did not SET THE PERMISSIONS for FormMail when I uploaded it to the server. Being new at this I didn't know you had to set permissions and NOTHING I read said I had to set permissions.

3. I used Fetch to ftp my FormMail to my server. Once I did I was suppose to go under "Remote" in the menu bar, and then select "Set Permissions."

4. A screen will then pop up. You should check to make sure "Owner" has "Read, Write and Search/Execute" permissions; that "Group" and "Everyone" should have "Read & Search/Execute" permissions. Then click "OK".

Hope this saves someone a couple of days of frustration. . . .