Mailversand funktioniert nicht

sansai

Grünschnabel
Ich erhalte nach "Senden" keine Mail und werde aufgefordert alle Formularfelder auszufüllen. Obwohl alle Felder ausgefüllt sind. Bitte helft mir weiter.

Code:
<?php

$Empfaenger = "mein@gmx.net";
// if (isset($_POST['send']))
 if($_REQUEST['Send'])
{
if(empty($_REQUEST['name']) || empty($_REQUEST['nachricht']) || empty($_REQUEST['email']) || empty($_REQUEST['tel']) || empty($_REQUEST['model']) || empty($_REQUEST['firstuse']) || empty($_REQUEST['color']) || empty($_REQUEST['kilometer']))
{
		echo"Please go <a href=\"javascript:history.back();\">BACK</a> and fill out all filds!";
	}
	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 .= "You got a e-Mail: \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"Thanks for your E-Mail!";
   }
}
else
{
?>
 
Moin,

Ohne das Formular zu kennen wirds hier schwer. Was mir aber auffällt ist das du 2 verschiedene Variablen für die Email hast:

PHP:
$_REQUEST['email']]
$_REQUEST['Email']]
 
Danke für den Hinweis. Werde den Html - Code noch nachreichen
zum besseren Verständniss
Danke im Voraus


HTML:
<table border="0" cellpadding="1" cellspacing="2">
  <form action="<?php echo$_SERVER['PHP_SELF']; ?>" enctype="multipart/form-data" method="post">
    <tr>
      <td width="1">&nbsp;</td> 
      <td width="103">Name:</td>
      <td width="529"><input name="name" size="50" type="text"></td>
    </tr>
    <tr>
      <td>&nbsp;</td>
      <td>Your adresse:</td>
      <td><textarea cols="50" name="nachricht" rows="5"></textarea></td>
    </tr>
    <tr>
      <td>&nbsp;</td> 
      <td>eMail:</td>
      <td><input name="email" size="50" type="text"></td>
    </tr>
	<tr>
	  <td>&nbsp;</td> 
      <td>Tel.:</td>
      <td><input name="tel" size="50" type="text"></td>
    </tr>
    <tr>
      <td>&nbsp;</td> 
      <td>Car Brand:</td>
      <td><select name="brandname" size="1">
          <option>Toyota </option>
		  <option>Honda </option>
          <option>Isuzu</option>
		  <option>Chevrolete</option>
		  <option>Nissan</option>
		  <option>Chryseler</option>
		  <option>BMW</option>
		  <option>Mitsubishi</option>
		  <option>Mercedes Benz</option>
		  <option>Subaru</option>
		  <option>Proton</option>
		  <option>Volvo</option>
		  <option>TAXI</option>
		  <option>TUCKTUCK</option>
		  <option>other</option>
		  
        </select></td>
    </tr>
    <tr>
      <td>&nbsp;</td>
      <td>Model.:</td>
      <td><input name="model" size="50" type="text"></td>
    </tr>
    <tr>
      <td>&nbsp;</td>
      <td>Year of first use.:</td>
      <td><input name="firstuse" size="50" type="text"></td>
    </tr>
    <tr>
      <td>&nbsp;</td>
      <td>color:</td>
      <td><input name="color" size="50" type="text"></td>
    </tr>
    <tr>
      <td>&nbsp;</td>
      <td>Kilometer.:</td>
      <td><input name="kilometer" size="50" type="text"></td>
    </tr>
    <tr> 
      <td align="center" colspan="3"><input name="Send" type="submit" value="Send"> 
        <input name="Reset" type="reset" value="Reset"></td>
    </tr>
  </form>
</table>
<?php
}

?>
</body>
</html>
 
Zurück