On 7/8/04 4:06 PM, in article cckd03$cl5$1 (AT) forums (DOT) macromedia.com, "kac3317"
<webforumsuser (AT) macromedia (DOT) com> wrote:
Quote:
I got the FormMail script from Matt's Script Archeive, read the Read Me file
and everything, but still don't really know what to do! I don't know where my
sendmail thing is on the server and all the Perl language is confusing. I have
run out of resources. If any one out there can help me through this, PLEASE
HELP!!!!
In the following, you will need to substitute your paths, email and domain
|
names. Also, the thanks.html file must be present.
Step 1: In your html file ---
-----------
<form method="post" action="./cgi-bin/formmail/formmail.cgi"
name="Feedback">
<input type=hidden name="recipient"
value="your-email (AT) your-dommain (DOT) com">
<input type=hidden name="subject" value="Your Site Web
Feedback">
<input type=hidden name="redirect"
value="http://www.your-domaain.ccm/thanks.html">
....
(your form stuff goes here)
....
<input type="submit" name="Submit" value=" Send Comments ">
<input type="reset" name="Reset" value=" Reset Form ">
</form>
------------
Step 2: In formmail.pl or formmail.cgi ---
------------
Edit the path to the sendmail program on your ISP's server (get that info
from your ISP). The line in formmail looks something like:
$mailprog = '/usr/lib/sendmail';
....
Edit the Referrers line to include your domain name. The like will look
something like:
@referers = ('your-domain.com');
------------
Also, be sure that you uploaded the formmail file in text mode.
Now, having said all of that, I would really suggest that you use the NMS
version, since it is more resistant to being hacked by spammers. You still
have to define the sendmail path and referrers, but that much is pretty much
the same as Matt's version. There are a few more options, too. But, you can
play with them later. Find it here:
http://www.scriptarchive.com/nms-download.cgi?s=nms-formmail&c=zip
Good luck.
John Gaver
Action America
(forget everything to contact me direct)
Microsoft: (n) Job security for IT consultants.