ren_hoeck
Grünschnabel
Servus miteinander,
hab schon ne weile die foren durchsucht, viel zu dem thema gefunden aber nun hilft mir alles nix mehr - muß euch fragen. das problem liegt beim abschicken des formulars bzw. dem ausführen des cgi scripts. fehler 13 erscheint da nur...
also mein html formular sieht so aus:
<form method="post" action="http://www.fechner-baugrund.de/cgi-bin/formmail.cgi">
<input type="hidden" name="recipient" value="steffenbuettner@gmx.de">
<input type="hidden" name="subject" value="Mail von fechner-baugrund.de">
<input type="hidden" name="redirect" value="http://www.fechner-baugrund.de/mailversandt.htm">
<input type="hidden" name="required" value="email">
<table border="0" cellspacing="0" cellpadding="3" align="center">
<tr>
<td align="right" valign="middle"> <strong><font face="Arial, Helvetica, sans-serif" size="2">
Name:</font></strong></td>
<td valign="middle">
<input type="text" name="realname" size="28"> </td>
</tr>
<tr>
<td align="right" valign="middle"><strong><font size="2" face="Arial, Helvetica, sans-serif">Vorname:</font></strong></td>
<td valign="middle">
<input name="vorname" type="text" id="vorname" size="28"></td>
</tr>
<tr>
<td align="right" valign="middle"><font size="2" face="Arial, Helvetica, sans-serif"><strong>Firma:</strong></font></td>
<td valign="middle">
<input name="firma" type="text" id="firma" size="28"></td>
</tr>
<tr>
<td align="right" valign="middle"><strong><font size="2" face="Arial, Helvetica, sans-serif">Straße,
Hausnummer</font></strong></td>
<td valign="middle">
<input name="Str., Hausnr." type="text" id="Str., Hausnr." size="28"></td>
</tr>
<tr>
<td align="right" valign="middle"><strong><font size="2" face="Arial, Helvetica, sans-serif">PLZ</font></strong></td>
<td valign="middle">
<input name="PLZ" type="text" id="PLZ" size="5" maxlength="5"></td>
</tr>
<tr>
<td align="right" valign="middle"><strong><font size="2" face="Arial, Helvetica, sans-serif">Ort</font></strong></td>
<td valign="middle">
<input name="ort" type="text" id="ort" size="28"></td>
</tr>
<tr>
<td align="right" valign="middle"><strong><font size="2" face="Arial, Helvetica, sans-serif">Bundesland</font></strong></td>
<td valign="middle"><input name="bundesland" type="text" id="bundesland" size="28"></td>
</tr>
<tr>
<td align="right" valign="middle"><strong><font size="2" face="Arial, Helvetica, sans-serif">Telefon</font></strong></td>
<td valign="middle"><input name="telefon" type="text" id="telefon" size="28"></td>
</tr>
<tr>
<td align="right" valign="middle"><strong><font size="2" face="Arial, Helvetica, sans-serif">Fax</font></strong></td>
<td valign="middle"><input name="fax" type="text" id="fax" size="28"></td>
</tr>
<tr>
<td align="right" valign="middle"><strong><font face="Arial, Helvetica, sans-serif" size="2">
e-mail:</font></strong></td>
<td valign="middle">
<input name="email" type="text" id="email" size="28"> </td>
</tr>
<tr>
<td align="right" valign="middle"><strong><font face="Arial, Helvetica, sans-serif" size="2">
Betreff:</font></strong></td>
<td valign="middle">
<input type="text" name="Betreff" size="28"> </td>
</tr>
<tr>
<td align="right" valign="top"><strong><font face="Arial, Helvetica, sans-serif" size="2">
Nachricht:</font></strong></td>
<td valign="middle">
<textarea rows="8" name="Nachricht" cols="37"></textarea>
</td>
</tr>
<tr>
<td align="right" valign="middle"><strong><font face="Arial, Helvetica, sans-serif" size="2">
Ab die Post!</font></strong></td>
<td valign="top">
<input type="submit" value="Abschicken">
<font face="Arial" size="2"> (bitte Bestätigungsseite abwarten!)
</font></td>
</tr>
</table>
</form>
... und das cgi script formmail.cgi im cgi-bin sieht so aus:
#!/cgi-bin/perl --
use CGI qw/fatalsToBrowser/;
use strict;
my $Mail= 'steffenbuettner@gmx.de"; #Empfänger eMail-Adresse
my $Nachname = param('realname'); #Nachname
my $Vorname = param('vorname'); #Vorname
my $Firma = param('firma'); #Firma
my $Strasse = param('strasse'); #Strasse
my $Plz = param('plz'); #PLZ
my $Ort = param('ort'); #Ort
my $Land = param('land'); #Land
my $Telefon = param('telefon'); #Telefon
my $Fax = param('fax'); #Fax
my $Email = param('email'); #Email
my $Website = param('website'); #URL
my $Nachricht = param('nachricht'); #Nachricht
use CGI;
my $cgi = new CGI;
print $cgi->header("text/html");
open (MAIL, "|$MailPgm $Mail") || die "Fehler beim Zugriff auf $MailPgm!\n";
print MAIL "Anfrage // Kontaktformular http://www.fechner-baugrund.de\n\n\n";
print MAIL "Nachname: $Nachname\n";
print MAIL "Vorname: $Vorname\n\n";
print MAIL "Firma: $Firma\n";
print MAIL "Strasse: $Strasse\n";
print MAIL "PLZ: $Plz\n";
print MAIL "Ort: $Ort\n";
print MAIL "Land: $Land\n\n";
print MAIL "Telefon: $Telefon\n";
print MAIL "Fax: $Fax\n";
print MAIL "Email: $Email\n";
print MAIL "Website: $Website\n\n\";
print MAIL "Nachricht:\n";
print MAIL "$nachricht\n\n";
print "content-type: text/html\n\n";
print "E-Mail erforlgreich versandt!";
close MAIL;
falls sich hier niemand findet, der sich dieser zeilen annehmen will, kann ichs verstehn. sehe ja selbst schon sternchen, zumal ich blutiger cgi-newbie bin.
bin für jede antwort dankbar!
ren
hab schon ne weile die foren durchsucht, viel zu dem thema gefunden aber nun hilft mir alles nix mehr - muß euch fragen. das problem liegt beim abschicken des formulars bzw. dem ausführen des cgi scripts. fehler 13 erscheint da nur...
also mein html formular sieht so aus:
<form method="post" action="http://www.fechner-baugrund.de/cgi-bin/formmail.cgi">
<input type="hidden" name="recipient" value="steffenbuettner@gmx.de">
<input type="hidden" name="subject" value="Mail von fechner-baugrund.de">
<input type="hidden" name="redirect" value="http://www.fechner-baugrund.de/mailversandt.htm">
<input type="hidden" name="required" value="email">
<table border="0" cellspacing="0" cellpadding="3" align="center">
<tr>
<td align="right" valign="middle"> <strong><font face="Arial, Helvetica, sans-serif" size="2">
Name:</font></strong></td>
<td valign="middle">
<input type="text" name="realname" size="28"> </td>
</tr>
<tr>
<td align="right" valign="middle"><strong><font size="2" face="Arial, Helvetica, sans-serif">Vorname:</font></strong></td>
<td valign="middle">
<input name="vorname" type="text" id="vorname" size="28"></td>
</tr>
<tr>
<td align="right" valign="middle"><font size="2" face="Arial, Helvetica, sans-serif"><strong>Firma:</strong></font></td>
<td valign="middle">
<input name="firma" type="text" id="firma" size="28"></td>
</tr>
<tr>
<td align="right" valign="middle"><strong><font size="2" face="Arial, Helvetica, sans-serif">Straße,
Hausnummer</font></strong></td>
<td valign="middle">
<input name="Str., Hausnr." type="text" id="Str., Hausnr." size="28"></td>
</tr>
<tr>
<td align="right" valign="middle"><strong><font size="2" face="Arial, Helvetica, sans-serif">PLZ</font></strong></td>
<td valign="middle">
<input name="PLZ" type="text" id="PLZ" size="5" maxlength="5"></td>
</tr>
<tr>
<td align="right" valign="middle"><strong><font size="2" face="Arial, Helvetica, sans-serif">Ort</font></strong></td>
<td valign="middle">
<input name="ort" type="text" id="ort" size="28"></td>
</tr>
<tr>
<td align="right" valign="middle"><strong><font size="2" face="Arial, Helvetica, sans-serif">Bundesland</font></strong></td>
<td valign="middle"><input name="bundesland" type="text" id="bundesland" size="28"></td>
</tr>
<tr>
<td align="right" valign="middle"><strong><font size="2" face="Arial, Helvetica, sans-serif">Telefon</font></strong></td>
<td valign="middle"><input name="telefon" type="text" id="telefon" size="28"></td>
</tr>
<tr>
<td align="right" valign="middle"><strong><font size="2" face="Arial, Helvetica, sans-serif">Fax</font></strong></td>
<td valign="middle"><input name="fax" type="text" id="fax" size="28"></td>
</tr>
<tr>
<td align="right" valign="middle"><strong><font face="Arial, Helvetica, sans-serif" size="2">
e-mail:</font></strong></td>
<td valign="middle">
<input name="email" type="text" id="email" size="28"> </td>
</tr>
<tr>
<td align="right" valign="middle"><strong><font face="Arial, Helvetica, sans-serif" size="2">
Betreff:</font></strong></td>
<td valign="middle">
<input type="text" name="Betreff" size="28"> </td>
</tr>
<tr>
<td align="right" valign="top"><strong><font face="Arial, Helvetica, sans-serif" size="2">
Nachricht:</font></strong></td>
<td valign="middle">
<textarea rows="8" name="Nachricht" cols="37"></textarea>
</td>
</tr>
<tr>
<td align="right" valign="middle"><strong><font face="Arial, Helvetica, sans-serif" size="2">
Ab die Post!</font></strong></td>
<td valign="top">
<input type="submit" value="Abschicken">
<font face="Arial" size="2"> (bitte Bestätigungsseite abwarten!)
</font></td>
</tr>
</table>
</form>
... und das cgi script formmail.cgi im cgi-bin sieht so aus:
#!/cgi-bin/perl --
use CGI qw/fatalsToBrowser/;
use strict;
my $Mail= 'steffenbuettner@gmx.de"; #Empfänger eMail-Adresse
my $Nachname = param('realname'); #Nachname
my $Vorname = param('vorname'); #Vorname
my $Firma = param('firma'); #Firma
my $Strasse = param('strasse'); #Strasse
my $Plz = param('plz'); #PLZ
my $Ort = param('ort'); #Ort
my $Land = param('land'); #Land
my $Telefon = param('telefon'); #Telefon
my $Fax = param('fax'); #Fax
my $Email = param('email'); #Email
my $Website = param('website'); #URL
my $Nachricht = param('nachricht'); #Nachricht
use CGI;
my $cgi = new CGI;
print $cgi->header("text/html");
open (MAIL, "|$MailPgm $Mail") || die "Fehler beim Zugriff auf $MailPgm!\n";
print MAIL "Anfrage // Kontaktformular http://www.fechner-baugrund.de\n\n\n";
print MAIL "Nachname: $Nachname\n";
print MAIL "Vorname: $Vorname\n\n";
print MAIL "Firma: $Firma\n";
print MAIL "Strasse: $Strasse\n";
print MAIL "PLZ: $Plz\n";
print MAIL "Ort: $Ort\n";
print MAIL "Land: $Land\n\n";
print MAIL "Telefon: $Telefon\n";
print MAIL "Fax: $Fax\n";
print MAIL "Email: $Email\n";
print MAIL "Website: $Website\n\n\";
print MAIL "Nachricht:\n";
print MAIL "$nachricht\n\n";
print "content-type: text/html\n\n";
print "E-Mail erforlgreich versandt!";
close MAIL;
falls sich hier niemand findet, der sich dieser zeilen annehmen will, kann ichs verstehn. sehe ja selbst schon sternchen, zumal ich blutiger cgi-newbie bin.
bin für jede antwort dankbar!
ren