Need help - how send form to email address

palmtree345

New member
Joined
Jan 13, 2006
Messages
1
How do I send form results to an email address? (I created the form in Dreamweaver.) In my Contact form file, I have the following 3 statements above the form code: ("www.samplesite.org" is a url that I just made up for this question.)

<form method="get" action="http://www.samplesite.org/cgi-bin/formmail.cgi">

<input type="hidden" name="recipient" value="[email protected]">

<input type="hidden" name="subject" value="Comments" enctype="text/plain">

1. In the first statement, it appears that "formmail.cgi" is supposed to be in the cgi-bin directory. But where is this file? I can't find it on the HostPC/DirectAdmin web pages.

2. I can see that the 2nd statement directs the form results to a certain email address. What's the point of the 3rd statement? I assume that this is written on the subject line of the email?

I'm very confused. Thank you.
 
There is no program called formmail.cgi included with DirectAdmin.

You can get a copy of FormMail.pl here, and rename it to formmail.cgi if you wish.

You'll have to install it in your cgi-bin directory and mark it as executable. Do not upload it with the File Manager, but rather use FTP.

And be sure to read both README files that come with it as you have to modify it so it'll work for you and still keep out spammers.

Jeff
 
I would recommend this soft:

http://www.email-form.com/

I am using it for years for dozen of diffrent forms on my corporate website (contact, orders...)

It handle any kind of form with a CGI or a PHP script (I use the PHP version).
 
Interesting.

And not too expensive.

But why pay anything? The secure version of FormMail on my download pages is also spam proof, and it reports spam attempts, and it's free :) .

And I didn't write it. I found it, used it, tested it, and wrote the author for permission to distribut it. Many years ago.

Jeff
 
Back
Top