PDA

View Full Version : Okay formmail question


djwirk
10-2-03, 02:21 PM
Got an old website that was hosted on my may transfering all the files to the new website and having trouble getting the formmail to work.

had it working on the old site like this:

<form method="post" action="/powweb-bin/FormMail.pl">

Now it's just a 404. Anyone know why?

YvetteKuhns
10-2-03, 02:53 PM
<form method="post" action="/powweb-bin/FormMail.pl">
is trying to access FormMail from PowWeb from your web address. This is correct, but if you just changed domain names or something, this may not work.

Did you try installing FormMail in your cgi-bin?
Try using
<form method="post" action="/cgi-bin/FormMail.pl">
or try
<form method="post" action="http://www.yourdomainname.com/powweb-bin/FormMail.pl">
or try
<form method="post" action="http://www.yourdomainname.com/cgi-bin/FormMail.pl">

djwirk
10-2-03, 03:06 PM
I'm not really sure. I never installed formmail on the old server, I was told it was just there allready so I was told to use that direction.

If I have to manually install the formmail in my cgi bin can you point me in the right direcion to get the script?

TIA

djwirk
10-2-03, 03:21 PM
I am using the temporary name untill my URL is registered will this effect it in any way?

djwirk
10-2-03, 03:24 PM
Cuz, I got formmail didn't configure it yet but i dropped it into my CGI-Bin to see if pointing to it worked..

<form method="post" action="/cgi-bin/FormMail.pl">

http://www07.powweb.com/cgi-bin/FormMail.pl

still 404

YvetteKuhns
10-2-03, 03:28 PM
Go to Matt's Script Archive at scriptarchive.com for the latest version of FormMail. See the CGI forum threads on the PowWeb Support Forums to see the post explaining what needs to be changed in the script. I have been sending this script to people, but you should download the original with the Readme info first.

I will repeat this anyway. Check these items in the script.

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

@referers = ('powerpageswebdesign.com','63.251.213.18');
# replace with your domain name and IP address

@recipients = &fill_recipients('powerpageswebdesign.com');
# replace with your domain name

Upload the script to your cgi-bin in ASCII mode and chmod to 755.

Change your path in your form page to
<form method="post" action="http://www.yourdomainname.com/cgi-bin/FormMail.pl">
or
<form method="post" action="/cgi-bin/FormMail.pl">

and include
<input type="hidden" name="recipient" value="email@powerpageswebdesign.com">
but use your domain name.

You can rename FormMail.pl to something else as I did at
http://www.powerpageswebdesign.com/form.htm

Feel free to peek at source code.