PDA

View Full Version : cgi form mail


lola
10-07-2008, 10: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.


code:
$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!

edbr
10-07-2008, 10: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

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

lola
10-07-2008, 12:57 PM
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?
thanks

domedia
10-07-2008, 02: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.

lola
10-07-2008, 02: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

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

lola
10-07-2008, 05: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.

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

edbr
10-08-2008, 02: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
http://www.dtheatre.com/scripts/