-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathcontactform.html
110 lines (100 loc) · 4.55 KB
/
contactform.html
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
107
108
109
110
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<link rel="stylesheet" href="contactform.css">
<link rel="stylesheet" href="css/style.css" type="text/css" media="all" />
<link rel="stylesheet" href="https://stackpath.bootstrapcdn.com/bootstrap/4.5.0/css/bootstrap.min.css">
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/5.15.2/css/all.min.css" integrity="sha512-HK5fgLBL+xu6dm/Ii3z4xhlSUyZgTT9tuc/hSrtw6uzJOvgRr2a9jyxxT1ely+B+xFAmJKVSTbpM/CuL7qxO8w==" crossorigin="anonymous" />
<link href="https://unpkg.com/tailwindcss@^2/dist/tailwind.min.css" rel="stylesheet" />
<link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/[email protected]/font/bootstrap-icons.css">
<title>Contact Us</title>
</head>
<body>
<div id="shell">
<div id="header" style="position: sticky;">
<h1 id="logo"><a href="index.html">WatchTrailer</a></h1>
<div id="navigation">
<ul>
<li><a href="main.html">HOME</a></li>
<li><a href="news.html">NEWS</a></li>
<li><a href="inthreater.html">IN THEATERS</a></li>
<li><a href="comingsoon.html">COMING SOON</a></li>
<li><a href="bookticket.html">BOOK TICKET</a></li>
<li><a href="contactform.html">CONTACT</a></li>
</ul>
</div>
<section class="fourthsection" id="feedback">
<div class="Feedform">
<form onsubmit="sendEmail(); reset(); return false;" autocomplete="off" >
<h1 style="font-size: 30px;">Contact Us</h1>
<div class="id">
<input type="text" id="name" placeholder="Name" required>
<i class="bi bi-person-fill"></i>
</div>
<div class="id">
<input type="text" id="phone" placeholder="Contact Number" required>
<i class="bi bi-telephone"></i>
</div>
<div class="id">
<input type="email" id="email" placeholder="Email" required>
<i class="far fa-envelope"></i>
</div>
<div class="id">
<textarea id="feedback" placeholder="Write your feedback here" cols="15" rows="5" required></textarea>
</div>
<button>Submit</button>
</form>
</div>
<script src="https://smtpjs.com/v3/smtp.js"></script>
<script>
function sendEmail(){
Email.send({
Host : "smtp.gmail.com",
Username : "[email protected]",
Password : "Nabhi123@4-",
To : '[email protected]',
From : document.getElementById("email").value,
Subject : "New Contact from Enquiry",
Body : "Name:" + document.getElementById("name").value
+ " <br> Email:" + document.getElementById("email").value
+ " <br> Phone Number:" + document.getElementById("phone").value
+ " <br> Feedback:" + document.getElementById("feedback").value
}).then(
message => alert("Message Sent Successfully")
);
}
</script>
</section>
<!-- <div id="footerco">
<tr>
<td colspan="4" height="20">
</td>
</tr>
</table>
<table border="0px" cellspacing="0" cellpadding="0" width="960px" height="100" background:url('images/body-bg.gif');><!-- table for link to social medias
<tr>
<td>
<center>
<a href="http://www.facebook.com"><img src="css/social icons/facebook.png" height="30" width="30"></a>
<a href="http://www.twitter.com"><img src="css/social icons/twitter.png" height="30" width="30"></a>
<a href="http://www.youtube.com"><img src="css/social icons/youtube.png" height="30" width="30"></a>
<a href="http://www.instagram.com"><img src="css/social icons/instagram.png" height="30" width="30"></a>
<p>Copy Right © Protected</p>
</center>
</td>
</tr>
</table>
<!-- <p <a href="#">WatchTrailer</a> - All Rights Reserved</p>
<p class="rf">Design by <a href="http://watchtrailer.com/">Bibek Poudel Karki</a></p> -->
<div style="clear:both;"></div>
</div> -->
<!-- <p <a href="#">WatchTrailer</a> - All Rights Reserved</p>
<p class="rf">Design by <a href="http://watchtrailer.com/">Bibek Poudel Karki</a></p> -->
<div style="clear:both;"></div>
</div>
</div>
</body>
</html>