FormMail Help ???
- Started
- Last post
- 20 Responses
- Buckyball2
Yo,
I have this rough test form template built:
http://www.austinkelley.com/form…
I uploaded the FormMail.pl file to my cgi-bin already.
the FormMail.pl file came with this readme:
http://www.scriptarchive.com/rea…
That is where I get lost. I know you have to change certain lines of code in the .pl file. But which ones and to what?
Any help anyone can give is really appreciated. I am desperately trying to make a form similar to my rough test work smoothly.
thanks,
bB
- Buckyball20
I was just told by our ISP that I don't need to change anything in the .pl file. Just put a hidden recipient in the form on the html page.
???
bB
- mikeim0
try adding these tags:
input name=subject type=HIDDEN value="subject goes here"
input name=nextpage type=HIDDEN value="http://www.yourdomai…...
input name=emailto type=HIDDEN
- Buckyball20
thx mikeim. i will give that a try.
bB
- slinky0
Matt's home
http://www.scriptarchive.com/for…
- shamus0
Have you checked that you are using the correct path to perl? it is set in the first line of the perl script, and may need to be adjusted depending on your isp. They will be able to verify the propper path to perl. Also, there are a few more variables in the script that need to be configured to work with your server. This is just pretty much changing yourname.com to reflect your actual domain and adding your email addy's etc.
if the above is straight, then its probably an issue with passing the data from the form.
hope this helps.
- shamus0
Have you checked that you are using the correct path to perl? it is set in the first line of the perl script, and may need to be adjusted depending on your isp. They will be able to verify the propper path to perl. Also, there are a few more variables in the script that need to be configured to work with your server. This is just pretty much changing yourname.com to reflect your actual domain and adding your email addy's etc.
if the above is straight, then its probably an issue with passing the data from the form.
hope this helps.
- Buckyball20
Here is the latest:
http://austinkelley.com/formtest…
I get a "thank you" page and says it mail sent to, etc.
but no mail arrives.
god I gotz ta be close.
help,
bB
- Buckyball20
Our ISP told me to change this line in the Perl:
$mailprog = '/usr/lib/sendmail -i -t';
to:
$mailprog = '/usr/sbin/sendmail -i -t';
changing the lib our for sbin.
still no mail. what gives.bB
- ldww0
why is your page not using formmail?
form action="cgi-bin/Redirect.pl"
shouldn;t it be formMail.pl?
- shamus0
does your form tag reference the script?
FORM METHOD="POST" ACTION="http://www.yoururl.com/c...
- ldww0
you have method="get" in there, change it to method="POST"
- shamus0
in the form tag, the action should be set to the path of your script.
- Buckyball20
The form seems to be working. Except that I don't receive the email that it says it sent.
I read the FAQ about this problem and it said:
$mailprog = '/usr/lib/sendmail -i -t';
This variable must define the location to your server's sendmail program. If this is incorrect, form results will not be mailed to you. Specifying the parameters in this variable is new in v1.91, and we have included the -i parameter so that a single period on a line by itself will not end the message. -t instructs sendmail to read the recipient list from the message text.In my perl script I currently have:
$mailprog = '/usr/sbin/sendmail -i -t';
My ISP told me to change the usr/lib to usr/sbin based on their servers or whatever. Is there something else in that code that I need to change or am missing.
thanks,
bB
- unfittoprint0
I used formmail.pl until I've found PHP. believe me, although similar in syntax I've never had a problem with a php mail() function. And there are 'zillions' of exmaples on the Internet ready to use, with a lot of juicy extras like auto-response.
- ********0
go to http://www.machnewmedia.com download my contact area and use that form
- Buckyball20
thanks all. i will give that a try Jaz. Much appreciated. Nothing like a major deadline looming to making the learning exp. that much more unenjoyable.
thanks,
bB
- autonoma0
BUCKYBALL2
You need to read the following page:
http://nms-cgi.sourceforge.net/
Even Matt Wright admits that his Formmail script is shoddy and poses a serious security risk.
You should use the NMS formmail instead, which apparently resolved a lot of the security holes.
- Buckyball20
thx auto. ya, I have switched to Jack's Scripts http://www.dtheatre.com/scripts "formmail.php. And I feel like I put in my domain name in all of the right places. for the recipient and the referers areas. And still, it gives me the "thank you for filling out this form" message but I get no email.
Been to the forums over there on that site and saw posts with similar problems. But couldn't make heads or tails of them.
ARGHRHGH!!! Brain melting. Must step away from Mac.
thanks. I am out of ideas.
here is the test form just in case anyone has the time to take a look and find something wrong.
http://www.austinkelley.com/form…
gracias,
bB
- unfittoprint0
Problably it's your host's SMTP mail configuration issue...