-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathindex.html
62 lines (62 loc) · 1.21 KB
/
index.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
<html>
<head>
<title>Node.JS Email application</title>
<script src="//ajax.googleapis.com/ajax/libs/jquery/1.11.1/jquery.min.js"></script>
<script>
$(document).ready(function(){
var from,to,subject,text;
$("#send_email").click(function(){
to = $("#to").val();
$("#message").text("Sending E-mail...Please wait");
$.post("/send",{to:to},function(response) {
if(response.error) {
$("#message").empty().html("Error - " + response.data);
} else {
$("#message").empty().html("<p>Email is been sent at "+to+" . Please check inbox !</p>");
}
});
});
});
</script>
<style>
#container
{
margin-left:400px;
margin-top:50px;
}
#to,#subject,#content
{
font-family: "Segoe UI";
font-size:18px;
width:530px;
}
h1
{
font-family: "Segoe UI";
font-size:40px;
color: #3b5998;
}
p
{
color:green;
}
#send_email
{
font-size:15px;
font-family: "Segoe UI";
}
#message
{
font-size:18px;
}
</style>
</head>
<body>
<div id="container">
<h1>Email-verification System in Node.js</h1>
<input type="text" id="to" placeholder="Enter E-mail which you want to verify"><br>
<button id="send_email">Send Email</button><br>
<span id="message"></span>
</div>
</body>
</html>