-
Notifications
You must be signed in to change notification settings - Fork 0
/
process.php
55 lines (43 loc) · 1.64 KB
/
process.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
44
45
46
47
48
49
50
51
52
53
54
55
<?php
if($_POST['axn'] == 'contact_2' and isset($_POST['username']) != ""){
$to = "[email protected]";
$from = $_POST["email"];
$message = " <strong>Name: </strong>".$_POST["username"]."<br />";
$message .= " <strong>Email Address: </strong>".$_POST["email"]."<br />";
$message .= " <strong>Subject: </strong>".$_POST["subject"]."<br />";
$message .= " <strong>Message: </strong>".$_POST["description"]."<br />";
$subject = 'Contact Enquiry';
$headers = "From: ".$_POST["email"]."\n";
$headers .= "MIME-Version: 1.0" . "\r\n";
$headers .= "Content-type:text/html;charset=iso-8859-1" . "\r\n";
$send = mail($to,$subject,$message,$headers);
if($send)
{
echo "success";
}
else
{
echo "error";
}
}
if($_POST['axn'] == 'contact_3' and isset($_POST['username']) != ""){
$to = " [email protected]";
$from = $_POST["email"];
$message = " <strong>Name: </strong>".$_POST["username"]."<br />";
$message .= " <strong>Email Address: </strong>".$_POST["email"]."<br />";
$message .= " <strong>Message: </strong>".$_POST["description"]."<br />";
$subject = 'Contact Enquiry';
$headers = "From: ".$_POST["email"]."\n";
$headers .= "MIME-Version: 1.0" . "\r\n";
$headers .= "Content-type:text/html;charset=iso-8859-1" . "\r\n";
$send = mail($to,$subject,$message,$headers);
if($send)
{
echo "success";
}
else
{
echo "error";
}
}
?>