Dynadot โ€” .com Registration $8.99

[Resolved] Need help with FormMail.pl

Spaceship Spaceship
Watch

marcus.alves

Established Member
Impact
0
Need help with FormMail.pl

Hi I need help with FormMail.pl, it will not work with my form.

Below are all the fields within FormMail.pl that I have changed:

#!/usr/sbin/perl

$mailprog = '/usr/sbin/sendmail';

@referers = ('appledrivingschool.co.uk','www.appledrivingschool.co.uk');

@recipients = @referers;

and the necessary fields in my form:


<form id="Contact Us" name="Contact Us" method="post" action="/cgi-bin/FormMail.pl">

<input name="recipient" type="hidden" id="recipient" value="[email protected]" />
<input name="subject" type="hidden" id="subject" value="Contact Form" />
<input name="redirect" type="hidden" id="redirect" value="www.appledrivingschool.co.uk/thankyou.html" />



When the form is submitted I get the following error message:

(500) Internal Server Error
The server encountered an internal error or misconfiguration and was unable to complete your request.

Please contact the server administrator, [email protected] and inform them of the time the error occurred, and anything you might have done that may have caused the error.

More information about this error may be available in the server error log.

Additionally, a 404 Not Found error was encountered while trying to use an ErrorDocument to handle the request.
Apache/1.3.31 Server at www.appledrivingschool.co.uk Port 80


I cant work it out, I've tried numerous of things including setting the permissions of the file to 755, but it just wont have it. :(

I hope someone has encountered this before and knows an answer :)
 
0
•••
The views expressed on this page by users and staff are their own, not those of NamePros.
GoDaddyGoDaddy
0
•••
Try the link peter gave you. However:

1.) I wouldn't use formmail, use a php script - or the php version of it. :imho: (no, this isn't because I hate perl :p - but because there are so many problems with the perl version)
2.) "Apache/1.3.31" - you should upgrade to atleast 1.3.37 - many security fixes have been made since 1.3.31
 
0
•••
SecondVersion said:
Try the link peter gave you. However:

1.) I wouldn't use formmail, use a php script - or the php version of it. :imho: (no, this isn't because I hate perl :p - but because there are so many problems with the perl version)
2.) "Apache/1.3.31" - you should upgrade to atleast 1.3.37 - many security fixes have been made since 1.3.31


How do i go about doing it? Is there somewhere i can get support in doing it?
 
0
•••
0
•••
It is not a good idea to use Formmail. It could have been acceptable years back but there are too many risks with that script including spam and security problems like http://www.securephpwiki.com/index.php/Email_Injection]mail injection[/URL].

A simple PHP script will do the job. For example phpmailer tweaked to your needs. Make sure that the script does not rely on hidden HTML fields. If you leave your E-mail address in one of these fields it will be picked by a spambot and you will start receiving tons of junk mail. Worse it could be used to hijack your form in order to send spam on your behalf.
 
0
•••
sdsinc said:
It is not a good idea to use Formmail. It could have been acceptable years back but there are too many risks with that script including spam and security problems like http://www.securephpwiki.com/index.php/Email_Injection]mail injection[/URL].

A simple PHP script will do the job. For example phpmailer tweaked to your needs. Make sure that the script does not rely on hidden HTML fields. If you leave your E-mail address in one of these fields it will be picked by a spambot and you will start receiving tons of junk mail. Worse it could be used to hijack your form in order to send spam on your behalf.
PHPMailer - if we're thinking about the same one - I wouldn't advise using it. It has some vulnerabilites that have to be manually patched, since the author hasn't released anything. ;)
 
0
•••
Let us do the job for you, see the link in my sig


Thanks
 
0
•••
0
•••
Unstoppable Domains
Domain Recover
NameMaxi - Your Domain Has Buyers
  • The sidebar remains visible by scrolling at a speed relative to the pageโ€™s height.
Back