blob: f3bdfcb833d5bef46c5267972eb70c3cdc243284 (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
|
<?php
$name = $_POST['name'];
$email = $_POST['email'];
$message = $_POST['message'];
$to = 'your-email@example.com'; //<-- Enter your E-Mail address here.
$subject = $_POST['subject'];
$body = "From: $name <br> E-Mail: $email <br> Message: <br> $message";
$headers = 'MIME-Version: 1.0' . "\r\n";
$headers .= 'Content-type: text/html; charset=utf-8' . "\r\n";
$headers .= 'From:' . $email. "\r\n";
$headers .= 'Cc:' . $email. "\r\n";
mail($to, "New Message from Website: $subject", $body, $headers);
?>
|