首页 > 互联资讯 > 技术交流  > 

如何取回已忘记的密码?

forget.asp

' 申请.

</SPAN><SPAN style="COLOR: black; FONT-FAMILY: 宋体; mso-ascii-font-family: 'Times New Roman'; mso-hansi-font-family: 'Times New Roman'">闪亮日子之用户密码核实</SPAN><SPAN lang=EN-US style="COLOR: black">

闪亮日子

用户密码核实

请正确填写您的邮件地址,我们会在核实后,尽快将密码寄给您!

您的邮件地址:

size="20" style="font-size: 12pt"> 确定"

style="font-size: 12pt">

sendit.asp

' 确认.

<%@ LANGUAGE="VBscript" %>

<% Option Explicit %>

<%

Dim DATA_PATH, objDC, objRS, email, user, pass, sendmail

DATA_PATH=Server.Mappath("users.mdb")

' 打开数据库.

Set objDC = Server.CreateObject("ADODB.Connection")

objDC.ConnectionTimeout = 15

objDC.CommandTimeout = 30

objDC.Open "DBQ=" & DATA_PATH & ";Driver={Microsoft Access Driver (*.mdb)}; DriverId=25;MaxBufferSize=8192;Threads=20;", "admin", "password"

Set objRS = Server.CreateObject("ADODB.Recordset")

email=request.form("email")

objRS.Open "select * from USERS WHERE email = '" & email & "'", objDC, 0, 1

' 校验用户的信箱是否存在.

%>

</SPAN><SPAN style="FONT-FAMILY: 宋体; mso-ascii-font-family: 'Times New Roman'; mso-hansi-font-family: 'Times New Roman'">山水盈盈之邮件地址错误提示</SPAN><SPAN lang=EN-US>

<%

if objrs.EOF then

%>

山水盈盈

邮件地址错误提示

对不起,该用户邮件信箱:<%=email%>不存在!

<% Else %>

<%

email = request.form("email")

' 从数据库中选取与递交的信箱对应的帐号,密码.

user = objrs.Fields("username")

pass = objrs.Fields("password")

Set sendmail = Server.CreateObject("CDONTS.NewMail")

sendmail.From = webmaster@intels.net

' 网管信箱.

sendmail.To = email

sendmail.Subject = "您的登录信息,请保存好!"

' 邮件主题.

sendmail.body = "您在山水盈盈的登录资料是:" & vbCrlf & vbCrlf _

& "Username=" & user & vbCrlf _

& "Password=" & pass & vbCrlf

' 邮件内容.

sendmail.Importance = 2

sendmail.Send

%>

您的资料已发送到<%=email%>,请收好,欢迎再次光临!

<%

objDC.Close

Set objRS = Nothing

Set objDC = Nothing

Set sendmail = Nothing

%>

<%end if%>

[1]

如何取回已忘记的密码?由讯客互联技术交流栏目发布,感谢您对讯客互联的认可,以及对我们原创作品以及文章的青睐,非常欢迎各位朋友分享到个人网站或者朋友圈,但转载请说明文章出处“如何取回已忘记的密码?