cgi - form mailing

DelmarvaDJ

Verified User
Joined
Jun 24, 2004
Messages
10
Just me with another dumb question...

When my site was on angelfire, I had two forms which delivered the answers into my e-mail box. I can't seem to get these to work by simply changing the url and e-mail address.

Bear in mind, websites are kinda like car engines to me. I know how to get em going but don't ask me what's under the hood! I cut and pasted script to build the forms and simply changed a few lines to get the info into my mailbox.

How can I do this again, here?
 
DelmarvaDJ said:
Just me with another dumb question...
There really aren't any dumb questions :) .
When my site was on angelfire, I had two forms which delivered the answers into my e-mail box. I can't seem to get these to work by simply changing the url and e-mail address.
Do you just have the html code, or do you have separate cgi files (ending in either .pl or .cgi)?
You need a CGI program (which on must shared hosting systems can have either extension) to make form-to-email work.
First choice for getting a CGI program will most likely be your hosting company, as they may have one they prefer.

Otherwise, ask me and I'll send you a copy of the secure version (yes really) of FormMail.pl, which we and our clients have had great success with; it even emails you if someone tries to use it to send spam.

Jeff
 
i would love that!

And as to the questions:

Do you just have the html code, or do you have separate cgi files (ending in either .pl or .cgi)?

my answer: hah? *blank stare*

You need a CGI program (which on must shared hosting systems can have either extension) to make form-to-email work.

my answer: wha? *blank stare*

I really don't have a clue! Before, when I put the script in my html i just filled in the ******'s with my pertinent info (which i got by following very easy to understand directions) then cut and pasted into my page. I don't understand how, why, or what makes it run, it just does.

Again, sorry for my noviceness...
:rolleyes:
 
oh yeah, and as to error messages, when I try to use the form and hit "submit" I am diverted to my customzed 404 error page instead of the "Thank You" page.

here is my under construction, handmade, simple site:

Salt & Light Entertainment

Thanks for your help.
 
That's my whole point. I don't know what to put there. I have no idea what code will place the information in my mailbox.

Any ideas?
 
OK, I corrected the miniscule script error which neglected the "." before "htaccess". Now it tells me another error message, "Method Not Allowed
The requested method POST is not allowed for the URL /index.html."

OK, buster, mr. apache-dude,... what method do you want?
 
Then, a few moments later I am still trying various methods to fix the problem and I get this:
Forbidden
You don't have permission to access /cgi-bin/.htaccess on this server.

Additionally, a 404 Not Found error was encountered while trying to use an ErrorDocument to handle the request.
 
Let's start at the beginning.

What's in that .htaccess file?

Hopefully not form-to-email code, as that's not what that file is for.

What you need is a form-to-email program; there are lots of them on the Internet with various degrees of security. You do need to be careful which one(s) you use, as some of them will allow spammers to take over your system and use it as a spam relay.

One option (one we feel is a good one) is Version 1.9s-p7 of FormMail.pl; this version was hardened for security by Ronald F. Guilmette, of monkeys.com.

It's available by ftp from ftp.monkeys.com, in the pub/formmail directory.

It's available by html from us at:

http://www.nobaloney.net/downloads/

Get the FormMail.tar.gz file if you're going to unpack it on a Linux, Unix, or Apple OS-X system, or the FormMail.zip file if you're going to unpack it on a Windows system.

If you unpack it on any other system besides the server it's going to run on, be sure to upload it to your server as ASCII.

The general instructions are in the README file; the instructions for, and information about, the secure version, are in the README.security file. The program itself is in the FormMail.pl file.

Jeff
 
Back
Top