?php
if (isset($_POST['submit'])) {
$to = "j.schumacher@example.com";
$subject = "Neues Support-Feedback";
$name = $_POST['name'];
$company = $_POST['company'];
$email = $_POST['email'];
$message = $_POST['message'];
$headers = "From: " . $email;
$txt = "You have received a form submission from " . $name . "\n\n" . $message;
mail($to,$subject,$txt,$headers);
header("Location: thank-you.html");
}
?