$erforderlich = explode (",", strtolower($erforderlich));
 $werte = array("erforderlich","fehler","weiterleitung","betreff","empfaenger","autoantwort","autoantwortbetreff");
 while (list($key, $val) = each($HTTP_POST_VARS))
 {
  if(in_array(strtolower($key),$erforderlich) AND $val=="") {
   header("Location: $fehler");  exit;
  }
  if(!in_array(strtolower($key), $werte)) {
  $mailtext .= sprintf("%-19s: %s\n",$key,$val);
 }}
 if($autoantwort==true AND isset($Email)) {
 $file = @fopen("antwort.txt", "r");
  if (!$file) die("kann datei antwort.txt nicht öffnen");
   $inhalt = fread($file, filesize('antwort.txt'));
   fclose($file);