-
Notifications
You must be signed in to change notification settings - Fork 3
Expand file tree
/
Copy pathEmail_validate.jsp
More file actions
43 lines (28 loc) · 872 Bytes
/
Copy pathEmail_validate.jsp
File metadata and controls
43 lines (28 loc) · 872 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
30
31
32
33
34
35
36
37
38
39
40
41
42
43
<%@page import="oaapDao.*"%>
<%@page import="Mailer.*"%>
<html>
<body>
<%
String email=request.getParameter("Email");
oaapUserDao user=new oaapUserDao();
EmailSend mail=new EmailSend();
int status=user.selectEmail(email);
if(status==1)
{
out.print("<h1 align=center>We have sent a mail to your registerd E-mail ID please check mail</h1>");
out.flush();
String pass=user.selectPass(email);
mail.sendMail(email,pass);
}
else
{
out.print("<h1 align=center>Invalid Email ID </h1>");
out.print("<h1 align=center>Email id not regiister </h1>");
out.flush();
RequestDispatcher rd1=request.getRequestDispatcher("ForgotPassword.jsp");
rd1.include(request,response);
}
%>
<a href= "Home.jsp" align= "center"></a>
</body>
</html>