-
Notifications
You must be signed in to change notification settings - Fork 0
/
feedback.html
58 lines (46 loc) · 1.75 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
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1, user-scalable=no">
<link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/bootstrap@5.2.3/dist/css/bootstrap.min.css">
<title>Feedback</title>
</head>
<body>
<!-- header start -->
<script src="./js/header.js"></script>
<!-- header end -->
<h1>Coming Soon...</h1>
<!-- Include the Email.js library -->
<script src="https://cdn.emailjs.com/dist/email.min.js"></script>
<script>
// Initialize Email.js with your user ID
emailjs.init("YOUR_USER_ID");
// Function to send the email
function sendEmail(e) {
e.preventDefault();
const form = document.getElementById("emailForm");
const recipient = form.recipient.value;
const subject = form.subject.value;
const message = form.message.value;
emailjs.send("YOUR_SERVICE_ID", "YOUR_TEMPLATE_ID", {
to_email: recipient,
subject: subject,
message_html: message
}).then(function (response) {
alert("Email sent successfully!");
form.reset();
}, function (error) {
alert("Email sending failed. Please try again later.");
console.error("Email send error:", error);
});
}
// Attach the sendEmail function to the form's submit event
const emailForm = document.getElementById("emailForm");
emailForm.addEventListener("submit", sendEmail);
</script>
</body>
<script type="module" src="./js/complete_profile.js"></script>
<script type="module" src="./js/navbar.js"></script>
<script src="https://cdn.jsdelivr.net/npm/bootstrap@5.2.3/dist/js/bootstrap.bundle.min.js"></script>
</html>