This commit is contained in:
Julian
2022-05-14 17:28:12 +02:00
parent 41bd8da093
commit d533f2f114
15 changed files with 398 additions and 183 deletions

14
email.php Normal file
View File

@@ -0,0 +1,14 @@
<?php
if (isset($_POST['submit'])) {
$name = $_REQUEST['fname'];
$email = $_REQUEST['email'];
$message = $_REQUEST['message'];
// Set your email address where you want to receive emails.
$to = 'julian.niessner@rismer.de';
$subject = 'Wedding Attenders!';
$headers = "From: ".$name." <".$email."> \r\n";
$send_email = mail($to,$subject,$message,$headers);
echo ($send_email) ? 'success' : 'error';
}?>