<?php
if(empty($_POST['name']) ||
empty($_POST['email']) ||
empty($_POST['message']) ||
!filter_var($_POST['email'],FILTER_VALIDATE_EMAIL))
{
echo "No arguments Provided!";
return false;
}
$name = $_POST['name'];
$email_address = $_POST['email'];
$message = $_POST['message'];
$to = 'burnharp@outlook.com'; // E-mail Adresse einfügen
$email_subject = "Burnharp Mail: $name";
$email_body = "Neue E-mail von der Burnharp Website. $name\n\nEmail: $email_address\n\n$message";
$headers = "From: noreply@louis-harps.ch\n"; // Wird angezeigt von wo die Mail kommt in diesem fall von noreply@deinedomain.ch\n
$headers .= "Reply-To: $email_address";
mail($to,$email_subject,$email_body,$headers);
return true;
?>
Hoffe Auf schnelle Antwort
if(empty($_POST['name']) ||
empty($_POST['email']) ||
empty($_POST['message']) ||
!filter_var($_POST['email'],FILTER_VALIDATE_EMAIL))
{
echo "No arguments Provided!";
return false;
}
$name = $_POST['name'];
$email_address = $_POST['email'];
$message = $_POST['message'];
$to = 'burnharp@outlook.com'; // E-mail Adresse einfügen
$email_subject = "Burnharp Mail: $name";
$email_body = "Neue E-mail von der Burnharp Website. $name\n\nEmail: $email_address\n\n$message";
$headers = "From: noreply@louis-harps.ch\n"; // Wird angezeigt von wo die Mail kommt in diesem fall von noreply@deinedomain.ch\n
$headers .= "Reply-To: $email_address";
mail($to,$email_subject,$email_body,$headers);
return true;
?>
Hoffe Auf schnelle Antwort
Kommentar