-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathcontact.php
More file actions
85 lines (70 loc) · 1.51 KB
/
contact.php
File metadata and controls
85 lines (70 loc) · 1.51 KB
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
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
<style type="text/css">
body,td,th {
color: #000;
font-size: 18px;
font-family: Arial, Helvetica, sans-serif;
background-color: #003333;
font-family: Arial, Helvetica, sans-serif;
font-style: normal;
font-weight: normal;
line-height: normal;
color: #000;
font-size: 18px;
text-decoration: none;
padding-top: 300px;
margin-left: 400;
width: 300px;
}
#info {
position: absolute;
height: 200px;
width: 600px;
border: 1px dotted #999;
padding-top: 40px;
padding-right: 6px;
padding-bottom: 6px;
padding-left: 6px;
}
p {
color: #FFF;
}
</style>
<body>
<div id="info">
<p>Thank you,for your interest in Lloyds Alternative Management, Your email will be answered very soon.</p>
</div>
<?php
/*Email Varibles*/
$emailSubject = ' lloyds Asset';
$webMaster = ' lloydsasset@gmail.com ';
/*Data Variable*/
$Name = $_POST['name'];
$company = $_POST['company'];
$email = $_POST['email'];
$message = $_POST['message'];
$body = <<<EOD
<br><hr><br>
*Name: $name <br>
*Company: $company <br>
*Email: $email <br>
*Message: $message <br>
EOD;
$headers = "From: $email\r\n";
$headers .= "Content-type: text/html\r\n";
$success = mail($webMaster, $emailSubject, $body,
$headers);
/*Result*/
$theResults = <<<EOD
<html>
<head>
<title>
<title>sent message</title>
<meta http-equiv="refresh" content="3; URL=http://lloyds-asset.com/contact.html">
</head>
<body>
<div align ="center">Thank you for your interest in Lloyds Alternative Management, Your email will be answered very soon</div>
</body>
</html>
EOD;
echo "$theResults";
?>