Ankündigung

Einklappen
Keine Ankündigung bisher.

Kontaktformularversand funktioniert nicht

Einklappen
X
  • Filter
  • Zeit
  • Anzeigen
Alles löschen
neue Beiträge

  • Kontaktformularversand funktioniert nicht

    Das anhängende Script bestätigt beim Versenden zwar einen erfolgreichen Versand, jedoch kommt nichts an. Wäre dankbar für eine Lösung.

    Ralph


    CODE


    <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
    <html xmlns="http://www.w3.org/1999/xhtml">
    <head>
    <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
    <title>Kontaktformular</title>
    <body>
    <div align="center">
    <p>
    <?php

    $Empfaenger = "3d-design@e-entec.net";

    if($_REQUEST['Send'])
    {
    if(empty($_REQUEST['Name']) || empty($_REQUEST['Email']) || empty($_REQUEST['Nachricht']))
    {
    echo"Bitte gehen Sie <a href=\"javascript:history.back();\">zurück</a> und füllen Sie alle Felder aus!";
    }
    else
    {
    $Mailbetreff = "Kontakt: ";
    $Mailbetreff .= $_REQUEST['Betreff'];

    $Trenner = md5(uniqid(time()));

    $Header = "From: ".$_REQUEST['Email'];
    $Header .= "\n";
    $Header .= "MIME-Version: 1.0";
    $Header .= "\n";
    $Header .= "Content-Type: multipart/mixed; boundary=$Trenner";
    $Header .= "\n\n";
    $Header .= "This is a multi-part message in MIME format";
    $Header .= "\n";
    $Header .= "--$Trenner";
    $Header .= "\n";
    $Header .= "Content-Type: text/plain";
    $Header .= "\n";
    $Header .= "Content-Transfer-Encoding: 8bit";
    $Header .= "\n\n";
    $Header .= "Sie haben folgende Nachricht erhalten: \n\n";
    while(list($Formularfeld, $Wert)=each($_REQUEST))
    {
    if($Formularfeld!="Send" && $Formularfeld!="Anhang")
    {
    $Header .= $Formularfeld.": ".$Wert."\n";
    }
    }
    $Header .= "\nDatum/Zeit: ";
    $Header .= date("d.m.Y H:i:s");
    $Header .= "\n";
    $Header .= "--$Trenner";
    $Header .= "\n";
    $Header .= "Content-Type: ";
    $Header .= $_FILES['Anhang']['type'];
    $Header .= "; name=";
    $Header .= $_FILES['Anhang']['name'];
    $Header .= "\n";
    $Header .= "Content-Transfer-Encoding: base64";
    $Header .= "\n";
    $Header .= "Content-Disposition: attachment; filename=";
    $Header .= $_FILES['Anhang']['name'];
    $Header .= "\n\n";
    $Dateiinhalt = fread(fopen ($_FILES['Anhang']['tmp_name'], "r"), $_FILES['Anhang']['size']);
    $Header .= chunk_split(base64_encode($Dateiinhalt));
    $Header .= "\n";
    $Header .= "--$Trenner--";

    mail($Empfaenger, $Mailbetreff, "", $Header);
    echo"Vielen Dank für Ihre eMail! / Thank you very much for your mail";
    }
    }
    else
    {
    ?>
    </p>
    <p>&nbsp; </p>
    </div>
    <div align="center">
    <p>&nbsp;</p>
    <p>&nbsp;</p>
    </div>
    <table width="800" height="450" border="0" align="center" cellpadding="1" cellspacing="2" background="EntecKontakt.jpg">
    <form action="<?php echo$_SERVER['PHP_SELF']; ?>" enctype="multipart/form-data" method="post">
    <tr>
    <td width="600"><div align="right"><font color="#333333" size="2"><font color="#FFFFFF" size="3" face="Lucida Sans Unicode"><strong>Vorname/Name</strong><em>/Name/Surname:</em></font></font></div></td>
    <td width="190"><input name="Name" size="26" type="text"></td>
    </tr>
    <tr>
    <td><div align="right"><font color="#FFFFFF" size="3" face="Lucida Sans Unicode"><strong>Strasse/Hausnr.</strong><em>/Street/Number:</em></font></div></td>
    <td><input name="Strasse" type="text" id="Strasse" size="26" /></td>
    </tr>
    <tr>
    <td><div align="right"><font color="#FFFFFF" size="3"><font face="Lucida Sans Unicode"><strong>PLZ/Ort</strong><em>/Zip
    Code/Town:</em></font></font></div></td>
    <td><input name="Ort" type="text" id="Ort" size="26" /></td>
    </tr>
    <tr>
    <td height="40"><div align="right"><font color="#FFFFFF" size="3" face="Lucida Sans Unicode"><strong>Land</strong><em>/Country:</em></font></div></td>
    <td height="40"><font color="#FFFFFF" size="2">
    <select name="Land" size="1">
    <option value="">bitte waehlen/pls. choose</option>
    <option value="49">Deutschland</option>
    <option value="61">Australia</option>
    <option value="43">Austria</option>
    <option value="32">Belgium</option>
    <option value="387">Bosnia &amp; Herzegovina</option>
    <option value="359">Bulgaria</option>
    <option value="107">Canada</option>
    <option value="178">Canary Islands</option>
    <option value="385">Croatia</option>
    <option value="357">Cyprus</option>
    <option value="42">Czech Rep.</option>
    <option value="45">Denmark</option>
    <option value="372">Estonia</option>
    <option value="358">Finland</option>
    <option value="33">France</option>
    <option value="30">Greece</option>
    <option value="36">Hungary</option>
    <option value="354">Iceland</option>
    <option value="353">Ireland</option>
    <option value="972">Israel</option>
    <option value="39">Italy</option>
    <option value="81">Japan</option>
    <option value="4101">Liechtenstein</option>
    <option value="370">Lithuania</option>
    <option value="352">Luxembourg</option>
    <option value="389">Macedonia</option>
    <option value="31">Netherlands</option>
    <option value="47">Norway</option>
    <option value="9999">Other</option>
    <option value="48">Poland</option>
    <option value="351">Portugal</option>
    <option value="40">Romania</option>
    <option value="7">Russia</option>
    <option value="442">Scotland</option>
    <option value="4201">Slovakia</option>
    <option value="386">Slovenia</option>
    <option value="34">Spain</option>
    <option value="46">Sweden</option>
    <option value="41">Switzerland</option>
    <option value="90">Turkey</option>
    <option value="380">Ukraine</option>
    <option value="382">Yugoslavia - Montenegro</option>
    <option value="3811">Yugoslavia - Serbia </option>
    </select>
    </font></td>
    </tr>
    <tr>
    <td><div align="right"><font color="#FFFFFF" size="3"><em><font face="Lucida Sans Unicode"><strong>eMail:</strong></font></em></font></div></td>
    <td><input name="Email" size="26" type="text"></td>
    </tr>
    <tr>
    <td><div align="right"><font color="#FFFFFF" size="3"><font face="Lucida Sans Unicode"><strong>Betreff</strong><em>/Regards:</em></font></font></div></td>
    <td><select name="Betreff" size="1">
    <option value=>bitte waehlen/pls. choose
    <option>Allg. Information</option>
    <option>Common Information</option>
    <option>Kontaktformularauswahl</option>
    <option>Contactform selection</option>
    <option>Kontaktformularkosten</option>
    <option>Contactform cost</option>
    <option>3D Logo design</option>
    <option>Web design</option>
    </select>
    </font></td>
    </tr>
    <tr>
    <td><div align="right"><font color="#FFFFFF" size="3"><font face="Lucida Sans Unicode"><strong>Nachricht</strong><em>/Message:</em></font></font></div></td>
    <td><textarea cols="20" name="Nachricht" rows="5"></textarea></td>
    </tr>
    <tr>
    <td><div align="right"><font color="#FFFFFF" size="3"><font face="Lucida Sans Unicode"><strong>Anhang</strong><em>/Attachement:</em></font></font></div></td>
    <td><input name="Anhang" size="9" type="file"></td>
    </tr>
    <tr>
    <td align="center" colspan="2"><div align="right">
    <input name="Send" type="submit" value="Senden / Send">
    <input name="Reset" type="reset" value="Zurueck / Cancel">
    </div></td>
    </tr>
    </form>
    </table>
    <?php
    }

    ?>
    </body>
    </html>


  • #2
    Hallo,

    als 1. setz um deinen Code bitte die php code tags .
    2. Deine kompletten E-Mailheader sind falsch... les dazu bitte meine Antwort im anderen Thread mit der E-Mailfunktion, dort wirst du feststellen, was an deiner E-Mailfunktion nicht läuft.

    Ambience
    Ich gebe gerne ICQ-Support gegen ein kleines Endgelt.

    Kommentar

    Lädt...
    X