-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathabout.js
More file actions
29 lines (23 loc) · 748 Bytes
/
about.js
File metadata and controls
29 lines (23 loc) · 748 Bytes
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
// contast us
function sendMail(){
var params = {
nameX: document.getElementById("nameX").value,
emailX: document.getElementById("emailX").value,
phoneX: document.getElementById("phoneX").value,
messageX: document.getElementById("messageX").value,
};
const serviceID = "service_pfeotci";
const templateID = "template_06txbwv";
emailjs
.send(serviceID,templateID,params)
.then((res) =>{
document.getElementById("nameX").value = "";
document.getElementById("emailX").value = "";
document.getElementById("phoneX").value = "";
document.getElementById("messageX").value = "";
console.log(res);
alert("Pesan telah terkirim");
}
)
.catch((err) => console.log(err));
}