update
This commit is contained in:
12
php/demo-contacts.php
Normal file
12
php/demo-contacts.php
Normal file
@ -0,0 +1,12 @@
|
||||
<?php
|
||||
if( isset($_POST['name']) )
|
||||
{
|
||||
$to = 'fake@example.com'; // Replace with your email
|
||||
|
||||
$subject = $_POST['subject'];
|
||||
$message = $_POST['message'] . "\n\n" . 'Regards, ' . $_POST['name'] . '.';
|
||||
$headers = 'From: ' . $_POST['name'] . "\r\n" . 'Reply-To: ' . $_POST['email'] . "\r\n" . 'X-Mailer: PHP/' . phpversion();
|
||||
|
||||
mail($to, $subject, $message, $headers);
|
||||
}
|
||||
?>
|
||||
Reference in New Issue
Block a user