-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathform.js
More file actions
28 lines (26 loc) · 719 Bytes
/
Copy pathform.js
File metadata and controls
28 lines (26 loc) · 719 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
function emailSend(){
var userName = document.getElementById('name').value;
var phone = document.getElementById('phone').value;
var email = document.getElementById('email').value;
var messageBody = "Name " + userName +
"<br/> Phone " + phone +
"<br/> Email " + email;
Email.send({
Host : "smtp.gmail.com",
Username : "shainese",
Password : "wkpm xocd gkqi jlyn",
To : 'oriefrat90@gmail.com',
From : "oriefrat90@gmail.com",
Subject : "Shainese",
Body : "messageBody"
}).then(
message => {
if(message=='OK'){
swal("Secussful", "You clicked the button!", "success");
}
else{
swal("Error", "You clicked the button!", "error");
}
}
);
}