-
Notifications
You must be signed in to change notification settings - Fork 0
/
mail.php
43 lines (28 loc) · 919 Bytes
/
mail.php
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
<?php
if(isset($_POST['name']) && $_POST['email'] != ''){
if(filter_var($_POST['email'], FILTER_VALIDATE_EMAIL) ){
//submit form
$userName = $_POST['name'];
$userEmail = $_POST['email'];
$messageSubject = $_POST['subject'];
$message = $_POST['message'];
$to = "[email protected]";
$body = "";
$body .= "Form:".$Nuserame. "\r\n";
$body = "Email:".$userEmail. "\r\n";
$body = "Message:".$Nuserame. "\r\n";
<<<<<<< HEAD
mail( $to,$messageSubject,$body);
=======
or die("Error!");
$echo"message sent";
>>>>>>> 17cca83e85d8c5c04d0699eeebefc5d3b0ea61b6
$message_sent = true;
or die("Error! OUPSS Somthing went wrong...");
$echo"message sent";
}
else{
$message_sent = false;
}
}
?>