Forum Moderators: coopster & phranque

Message Too Old, No Replies

Formmail.pl

Internal server 500 error

         

TheSlyRussian

3:31 pm on Jul 5, 2005 (gmt 0)

10+ Year Member



Hello,

I have been up and down this code for a while now and have no clue what is the problem. I've allowed the chmod to be 755. Also uploaded it in ASCII format.

here is the code, please help.

form:
<form name="formmail" action="http://www.mydamain/cgi-bin/FormMail.pl" method="post">
<INPUT TYPE="HIDDEN" NAME="recipient" VALUE="info@mydomain.com">
<INPUT TYPE="HIDDEN" NAME="subject" VALUE="ARMS Entertainment Mailing List">
<INPUT TYPE="HIDDEN" NAME="redirect" VALUE="http://www.mydomain.com/thanks.htm">
<INPUT TYPE="HIDDEN" NAME="required" VALUE="email,your_name,address,city,state,phone">
<input type=hidden name="sort" value="your_name,address,city,phone,state,email">

Formmail.pl file

Line 1: #!/usr/bin/perl -wT

$mailprog = '/usr/lib/sendmail -oi -t';

@referers = qw('www.mydomain.com','mydomain.com');

@allow_mail_to = qw('^mail\@mydomain\.com);

@valid_ENV = qw('REMOTE_HOST','REMOTE_ADDR','REMOTE_USER','HTTP_USER_AGENT');

I hope someone knows the issue...I'm clueless at this point.

Thank you in advance

ckarg

6:29 pm on Jul 5, 2005 (gmt 0)

10+ Year Member



Try adding this to your script:

use CGI::Carp qw(fatalsToBrowser);

This will send any perl error messages to the browser. Just remember to remove it before going to production. It yours is a perl error, that will display the message. If not, you should increase your server's LogLevel, and take a look at what's happening in the server logs.

AltherrWeb

1:18 pm on Jul 7, 2005 (gmt 0)

10+ Year Member



Try downloading putty.exe and logging in SSH to your site then just pico the page and save it with the putty editor. It always fixes it for me on my perl forms