-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathcontact.html
118 lines (89 loc) · 3.95 KB
/
contact.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
111
112
113
114
115
116
117
118
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<title>Contact Us</title>
<link rel="stylesheet" href="contactStyle.css">
<meta name="viewport" content="width=device-width,initial-scale=1.0">
</head>
<body>
<div class="main-home">
<div class="home-inner-contect">
<h1 class="text1"><b>Don't Hesitate TO</b></h1>
<br>
<h1><b>Contact Us</b></h1>
</div>
<header class="header">
<nav class="menu">
<a href="index.html">HOME</a>
<a href="bookNow.html">BOOK NOW</a>
<a href="Services.html">SERVICES</a>
<a href="contact.html">ABOUT US</a>
</nav>
<div class="navbar-icons" style="margin-left: 0;">
<div class="contact"><a href="#">LOGIN / SIGN IN</a></div>
</div>
</header>
</div>
<div class="container">
<form onsubmit="sendEmail(); reset(); return false;">
<h1>Contact Us</h1>
<input type="text" id="firstname" placeholder="First Name" required>
<input type="text" id="lastname" placeholder="Last Name" required>
<input type="email" id="email" placeholder="Email" required>
<input type="text" id="mobile" placeholder="Mobile" required>
<h4>Type your message here....</h4>
<textarea required></textarea>
<input type="submit" value="send" id="button">
</form>
</div>
<footer class="footer-distributed">
<div class="footer-left">
<p class="footer-links">
<a href="index.html">Home</a>
<a href="bookNow.html">Book Now</a>
<a href="Services.html">Services</a>
<a href="contact.html">About Us</a>
</p>
</div>
<div class="footer-center">
<div>
<p><span>35 Mahinda Rajapaksha Road</span>Colombo 07</p>
</div>
<div>
<p>+94 11 2799 729</p>
</div>
<div>
</div>
</div>
<div class="footer-right">
<p class="footer-about">
<span>About Us</span>
We are a reliable taxi company dedicated to providing safe and efficient transportation services. Our professional drivers are trained to deliver a comfortable and hassle-free ride to our customers.
</p>
</div>
</footer>
<script src="https://smtpjs.com/v3/smtp.js"></script>
<script>
function sendEmail(){
Email.send({
Host : "smtp.gmail.com",
Password : "Cab#7788",
From : document.getElementById("email").value,
Subject : "New contact form inquery",
Body : "Name: " +document.getElementById("First name").value
+"<br> name" +document.getElementById("Last name").value
+"<br> email " +document.getElementById("Email").value
+"<br> mobile" +document.getElementById("Mobile").value
+"<br> message " +document.getElementById("Message").value
}).then(
message => alert(" message sent successfully")
);
}
</script>
</body>
</html>