View Full Version : cgi form mail

10-07-2008, 09:04 AM
Hi All
keep wanting to get rid of all my forms and then i try and try again! just going round in circles... 4 days and counting! cant use php.

getting internal server error.... anyone spot anything wrong? set permissions to 755.

my form
<form action="http://www.mydomain.co.uk/formmail/FormMail.txt" (http://www.mydomain.co.uk/formmail/FormMail.txt) method="post"> (also tried formmail.pl and .cgi).
<input type='hidden' name="recipient" value="enquiries@mye-mail.co.uk"/>
<input type='hidden' name="subject" value="Form Results"/>
<input type='hidden' name="required" value=""/>
<input type='hidden' name="redirect" value="thankyou.html">

spoken to support who tell me i dont need a cgi file.

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

# @referers allows forms to be located only on servers which are defined #
# in this field. This security fix from the last version which allowed #
# anyone on any server to use your FormMail script on their web site. #
@referers = (‘www.mydomain.co.uk');
# @recipients defines the e-mail addresses or domain names that e-mail can #
# be sent to. This must be filled in correctly to prevent SPAM and allow #
# valid addresses to receive e-mail. Read the documentation to find out how #
# this variable works!!! It is EXTREMELY IMPORTANT. #
@recipients = &fill_recipients(@referers, ‘enquiries@mye-mail.co.uk’);

does anything look obviously wrong? has anyone used cgi and dreamweaver/
thank you!

10-07-2008, 09:13 AM
<form action="http://www.mydomain.co.uk/formmail/FormMail.txt" (http://www.mydomain.co.uk/formmail/FormMail.txt)
a txt file isnt a formail script

10-07-2008, 09:16 AM
what script are you using?

10-07-2008, 11:57 AM
sorry, was trying some things out...

its been .cgi, .pl, .txt for good measure - nothing works.
my permissions are correct (755). driving me nuts!

using matts script:http://www.scriptarchive.com/formmail.html

any ideas?

10-07-2008, 01:15 PM
You can't just change the file extension to 'try out'. It's like putting a BMW logo on a Honda, it doesn't work that way.

10-07-2008, 01:21 PM
i was desperate! forget i mentioned txt! its:
=http://www.mydomain.co.uk/formmail/FormMail.p (http://www.mydomain.co.uk/formmail/FormMail.p)l

10-07-2008, 01:38 PM
What's wrong with the script? You said something about an error.

10-07-2008, 04:27 PM
Internal Server Error

The server encountered an internal error or misconfiguration and was unable to complete your request.

Please contact the server administrator, 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.

10-07-2008, 06:04 PM
thanks all.
sorry, dont know how!

10-08-2008, 01:23 AM
look at this script. it is easy to configure just referers and recipientsbut there is a clear manual and is so far at least spam proof