Gracias por adelantado.
Formulario 1
Código:
<? $para = "[email protected]"; $name = $_POST["name"]; $strasse = $_POST["strasse"]; $ort = $_POST["ort"]; $handy = $_POST["handy"]; $fix = $_POST["fix"]; $fax = $_POST["fax"]; $datum = $_POST["datum"]; $thema = $_POST["thema"]; $de = $_POST ["mail"]; $headers = "MIME-Version:1.0;\r\n"; $headers .= "Content-type: text/html; \r\n charset=iso-8859-1; \r\n"; $headers .= "From: $de \r\n"; $headers .= "To: $para; \r\n"; if(mail ($para,$datum,$thema,$headers)) echo "Richtig geschickt"; else echo "Falsch geschickt"; ?>
Formulario 2
Código:
<?
$name = $_POST['name'];
$strasse = $_POST['strasse'];
$ort = $_POST['ort'];
$handy = $_POST['handy'];
$fix = $_POST['fix'];
$mail = $_POST['mail'];
$fax = $_POST['fax'];
$datum = $_POST['datum'];
$thema = $_POST['thema'];
$headers = "MIME-Version:1.0;\r\n";
$headers .= "Content-type: text/html; \r\n charset=iso-8859-1; \r\n";
$headers .= "From: $mail \r\n";
$headers .= "To: $para; \r\n";
$mailsend = mail ('[email protected]','CONSULTA,"Name: $name\r\nStrasse: $strasse\r\nOrt: $ort\r\nHandynummer: $handy\r\nFixnummer: $fix\r\nMail: $mail\r\nFax: $fax\r\nDatum: $datum\r\nThema: $thema");
if($mailsend) {
echo "Sie sind aber SUPER";
}
else {
echo "Falsch geschickt!";
}
?>


