Sabine: Bekomme immer Fehler 501 gemeldet

Beitrag lesen

Hallo,

seit 2 ganzen Tagen beschäftige ich mich nun mit diesen tollen "Formmailern", und bin wohl zu blöd dafür. Ich habe mir den Formailer Nether.Mail runtergeladen, die Variablen angepaßt:

#!/usr/bin/perl

^-------------- Change this to your path to PERL

Copyright © 1998 Ilia Mirkin & Ben Congleton / Nethernet. (http://www.nethernet.com)

This script can be destributed for free as long as the header remains the same..

and the user-site provides a link to Nethernet.com.

if you use Nethern-Mail We would appreciate it if you mailed

root@nethernet.com so we can point to you on our examples page

###################################################################

Simple Install Instructions:

1) Modify the variables, and add the default sender, redir and

#     path to your sendmail program, upload this CGI and chmod it 755

2) Create a form you would like users to fill out and set

#                      <FORM method=POST action="address of this CGI">

3) If you are using this CGI for multiple users you can specify who

#    the message should be sent to by adding a
#                <input type=hidden name="to" value="your-email@yourdot.com">
#                <input type=hidden name="redir" value="http://www.thankspageURL">

4) And that is it unless you want to log every sent mail (usefull when you have

#    Multiple users using the form)

5) If you are logging the send mails, you should create a file called log.txt and chmod it #    777

#    And then you will be done :-)

6) Add a link to our site on your webpage :-)  and have fun :-)

###################################################################

Variables:

Default E-mail to send the mail to:  (you must use '' in front of the '@' sign

$yourmail="s.helwig@die-helwigs.de";

Default URL to redirect to after a sent message:

$yourredir='http://www.die-helwigs.de/nell/index.html';

Url to send the user to if they don't access the page using a POST

$redd='http://www.kontakt.htm';

Sort method ( 1 = The order of the fields on the original form, 2 = Alphabetically, 3 = random :-)

$sort=1;

##################3

Path to sendmail:

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

(this is the program that sends the mail on your server.. if you do know where it is

#  you can type 'whereis sendmail' during a telnet session, or ask your host)

#############################

Advanced Vars for Logging

Do you want logging on ?  (1=yes 0=no)

$log=1;

Where do you want it to log the results to:

$logfile="logfile.txt"; # File where you want your logs to go.

(this file must be chmodded 777, and created before it will start logging)

############################################################

And that is it, please do not modify the below code

############################################################

den chmod auf 755 geändert, daß Formular mit

<FORM method=POST action="cgi-bin/mail.pl">
<input type=hidden name="to" value="s.helwig@die-helwigs.de">
<input type=hidden name="redir" value="http://www.die-helwigs.de/nell/index.html">

mit mail.pl verknüpft, und nun bekomme ich den Fehler 501 verpaßt. Was mache ich falsch? Bitte, ich wäre froh, wenn mir jemand helfen kann, ich alleine kann es nicht.

Danke,

Sabine