-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathcontact-operation.php
107 lines (104 loc) · 4.15 KB
/
contact-operation.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
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
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
<?php
session_start();
if($_SERVER['REQUEST_METHOD'] === 'POST'){
$name = $_POST['name'];
$email = $_POST['email'];
$subject = $_POST['subject'];
$to = 'shabazbelim@gmail.com';
$headers = "From: ".$email . "\r\n";
$headers .= 'MIME-Version: 1.0' . "\r\n";
$headers .= 'Content-type: text/html; charset=iso-8859-1' . "\r\n";
$notify = $_POST['message'];
$message = '<html>
<head>
<title>MR ART EXPORTS</title>
<style type="text/css">
body
{
background: #c1bdba;
font-family: "Titillium Web", sans-serif;
}
a
{
text-decoration: none;
color: #1ab188;
-webkit-transition: .5s ease;
transition: .5s ease;
}
a:hover
{
color: #179b77;
}
h1
{
font-size: 18px;
text-align: center;
color: #ffffff;
font-weight: 300;
}
h2
{
text-align: center;
color: #1ab188;
font-weight: 1000;
}
span
{
color: #1ab188;
font-weight: bold;
}
p
{
text-align: center;
color: #ffffff;
margin: 0px 0px 50px 0px;
padding-top: 2px;
}
.form
{
background: rgba(19, 35, 47, 0.9);
padding: 40px;
max-width: 600px;
margin: 40px auto;
border-radius: 4px;
box-shadow: 0 4px 10px 4px rgba(19, 35, 47, 0.3);
}
.button
{
font-family: "Titillium Web", sans-serif;
border: 0;
outline: none;
border-radius: 0;
padding: 15px 0;
margin-top: 30px;
font-size: 2rem;
font-weight: 600;
text-transform: uppercase;
letter-spacing: .1em;
background: #1ab188;
color: #ffffff;
-webkit-transition: all 0.5s ease;
transition: all 0.5s ease;
-webkit-appearance: none;
}
.button:hover, .button:focus
{
background: #179b77;
}
.button-block
{
display: block;
width: 100%;
}
</style>
</head>
<body>
<div class="form"><center><a href="https://www.mrartexports.com"><img src="https://www.mrartexports.com/images/logo.png" alt="MR ART Exports" width="150px"></a></center>
<h1 style="font-size: 20px; text-align: left;">Contact Form <a>'.$notify.'</a></h1>,<br>
</div>
</body>
</html>';
mail($to, $subject, $message, $headers);
echo "<div class='alert alert-success' role='alert'>Email is successfully send.</div>";
}
?>