progress
This commit is contained in:
14
email.php
Normal file
14
email.php
Normal 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';
|
||||
}?>
|
||||
Reference in New Issue
Block a user