$to = "info@tischler-haase.de";
$subject = "Mitteilung aus der Homepage";
$action = $_POST['action'];
$name = $_POST['name'];
$firma = $_POST['firma'];
$fon = $_POST['fon'];
$mail = $_POST['mail'];
$message = $_POST['message'];
if(!isset($action))
{
include("form.html");
}
else
{
$text = "\r\n".
"
\r\n".
"\r\n".
"\r\n".
"\r\n".
"\r\n".
"Mitteilung aus der Homepage
\r\n".
"". $name ."
\r\n".
"Firma: ". $firma ."
\r\n".
"Tel: ". $fon ."
\r\n".
"E-Mail: ". $mail ."
\r\n".
"
\r\n".
"". $message ."
\r\n".
"\r\n".
"";
$header = "From: \"$name\"<$mail>\n";
$header .= "Reply-To: $to\n";
$header .= "X-Mailer: PHP/" . phpversion(). "\n";
$header .= "Content-Type: text/html; charset=iso-8859-1\n";
$header .= "Content-Transfer-Encoding: quoted-printable";
mail($to,$subject,$text,$header);
?>
Vielen Dank ,
Ihre Mitteilung wurde an uns gesendet.
}
?>