-
Notifications
You must be signed in to change notification settings - Fork 0
/
feedback.html
96 lines (77 loc) · 2.58 KB
/
feedback.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
<!DOCTYPE html>
<html lang= "en">
<head>
<meta charset ="UTF-8">
<meta name = "viewport" content = "width = device-width, initial-scale=1.0">
<title>Feedback</title>
<link rel = "stylesheet" href = "css/feedback.css">
<!--<link rel = "stylesheet" href = "JS/feedback.js">-->
<script src="https://smtpjs.com/v3/smtp.js"></script>
<script src="https://ajax.googleapis.com/ajax/libs/jquery/3.5.1/jquery.min.js"></script>
<script>
function sendEmail() {
var em =document.myform.email.value;
var us =document.myform.username.value;
var ta =document.myform.textarea.value;
Email.send({
Host: "smtp.gmail.com",
Username : "[email protected]",
Password : "aweguorttgdktewy",
To:"[email protected]",
From : "[email protected]",
Subject : "Feedback",
Body : "Name: " +us +" "+" Comments: "+ta,
}).then(
alert("Thanks for your Feedback")
);
}
</script>
</head>
<body>
<div class ="container">
<form name="myform" id="form" method="post" action="#" onsubmit="return sendEmail();">
<div class ="form">
<h2>Send Feedback</h2>
<div class ="user">
<input type="email" name = "email" placeholder="Enter Your Email" id = "email" required>
</div>
<div class = "username">
<input type = "text" placeholder = "Enter Username" id = "username" required>
</div>
<textarea placeholder = "Enter Your Message" id = "textarea" required>
</textarea>
<div class="rating">
<input type = "radio" name = "emoji" id = "emoji1" checked>
<label for = "emoji1">
<img src = "images/in-love.png" title = "Loved">
<h4>Loved It</h4>
</label>
<input type = "radio" name = "emoji" id = "emoji2" checked>
<label for = "emoji2">
<img src = "images/Satisfactory.png" title = "Satisfactory">
<h4>Satisfactory</h4>
</label>
<input type = "radio" name = "emoji" id = "emoji3" checked>
<label for = "emoji3">
<img src = "images/happy.png" title = "Happy">
<h4>Happy</h4>
</label>
<input type = "radio" name = "emoji" id = "emoji4" checked>
<label for = "emoji4">
<img src = "images/NotGood.png" title = "NotGood">
<h4>Not Good</h4>
</label>
<input type = "radio" name = "emoji" id = "emoji5" checked>
<label for = "emoji5">
<img src = "images/in-love.png" title = "Loved">
<h4>Loved It</h4>
</label>
</div>
<div class = "sub">
<input type = "submit" name = "submit" value = "Submit" onclick="myFunction()">
</div>
</div>
</form>
</div>
</body>
</html>