- Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathsendForm.php
More file actions
Latest commit
16 lines (16 loc) · 553 Bytes
/
Copy pathsendForm.php
File metadata and controls
16 lines (16 loc) · 553 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
<?php
date_default_timezone_set('GMT');
if(isset($_POST['submit'])){
foreach($_POSTas$key=>$value){
$$key = $value;
}
$to = "matt@parkplumb.co.uk";
$subject = 'Please Contact me RE: Website Enquiry';
$message = "Message from ".$name . "\r\n Telephone: \r\n" . $tel . "\r\n Comment:\r\n" . $comment;
$headers = 'From: matt@parkplumb.co.uk' . "\r\n" . 'Bcc: rhyspark@me.com' . "\r\n" .
'Reply-To:'.$email."\r\n" .
'X-Mailer: PHP/' . phpversion();
mail($to, $subject, $message, $headers);
echo"success";
}
?>