PDA

View Full Version : Form Mail


tll
10-25-2000, 11:58 AM
Hi:

Here is formmail link to www.rainbowhouseinc.com/contactcat.html. (http://www.rainbowhouseinc.com/contactcat.html.) Problem is when I click on submit it gives me the error

“malformed header from script. Bad header=Launching... /usr/apache/apach: /usr/home/rainbowh/public_html/cgi-bin/formmail.cgi”

The snippet from contactcat.html.
<form action="cgi-bin/formmail.cgi" method="POST"><input type="hidden" name="recipient" value="teckllow@rainbowhouseinc.com"><input type="hidden" name="subject" value=
"RHI Form"><input type="hidden" name="redirect" value="http://www.rainbowhouseinc.com/home.htm">

Regardless of what file extension I used, pl or cgi, I received the above message. I placed the file, formmail.pl in public_html/formmail/formmail.pl or public_html/cgi-bin/formmail.cgi I tried the @referers at the ISP IP address yet I get the above error message. The form mail script is Matt's script v1.6

How to fix this.

kevin
10-27-2000, 01:07 AM
Make sure the very first line of code is:

#!usr/bin/perl

or whatever the correct path to perl line is for your server.

Regards,
Kevin


[This message has been edited by kevin (edited 10-27-2000).]

tll
10-27-2000, 10:29 AM
Kevin:

Yes, the first line has #!/usr/bin/perl. The funny part is this script was test by 2 differrent person and both run the script flawlessly. When I run this on my ISP FreeBSD Unix it bombed.

<BLOCKQUOTE><font size="1" face="Verdana, Arial">quote:</font><HR>Originally posted by tll:
Hi:

Here is formmail link to www.rainbowhouseinc.com/contactcat.html. (http://www.rainbowhouseinc.com/contactcat.html.) Problem is when I click on submit it gives me the error

“malformed header from script. Bad header=Launching... /usr/apache/apach: /usr/home/rainbowh/public_html/cgi-bin/formmail.cgi”

The snippet from contactcat.html.
&lt;form action="cgi-bin/formmail.cgi" method="POST"&gt;&lt;input type="hidden" name="recipient" value="teckllow@rainbowhouseinc.com"&gt;&lt;input type="hidden" name="subject" value=
"RHI Form"&gt;&lt;input type="hidden" name="redirect" value="http://www.rainbowhouseinc.com/home.htm"&gt;

Regardless of what file extension I used, pl or cgi, I received the above message. I placed the file, formmail.pl in public_html/formmail/formmail.pl or public_html/cgi-bin/formmail.cgi I tried the @referers at the ISP IP address yet I get the above error message. The form mail script is Matt's script v1.6

How to fix this.<HR></BLOCKQUOTE>

kevin
10-27-2000, 03:19 PM
OK....
Since your cgi-bin is accessible via http (it shoudn't be but... http://www.rainbowhouseinc.com/cgi-bin/), I looked in and downloaded the misnamed version of the script.

Make sure you are using the correct path to the sendmail program. On your server it should be:
/usr/sbin/sendmail

Regards,
Kevin




[This message has been edited by kevin (edited 10-27-2000).]