<%@language="vbscript" %>
<%
set mail= server.CreateObject("cdonts.newmail")
mail.subject="恭喜,您在随风起舞注册成功,感谢您的参与!"
mail.to = mailid mail.from ="song@intels.net"
mail.body= "这是随风起舞寄给您的初始密码" & vbcrlf
&href='mailto:mailid="user@intels.net'>mailid="user@intels.net"
address="address"

set conn = server.CreateObject("adodb.connection")
conn.Open "dsn","uid","pwd"
set rec= conn.Execute("select count(*) from membertable")
id = cint(rec.fields(0))+1
r=rnd *50
Response.Write r & "<br>"
for i = 0 to 20
    if cint(r)>0 and cint(r)<26 then str=str +chr(97 + cint(r))
    r=rnd *100
next

Response.Write str
pwd=left(str,2)
pwd=pwd & id
pwd=pwd & right(str,2)
pwd=pwd & second(time)

%>
<br>
<%
set mail= server.CreateObject("cdonts.newmail")
mail.subject="千花飞舞向您问候!"
mail.to = mailid
mail.from ="song@intels.net"
mail.body= "这是随风起舞寄给您的初始密码" & vbcrlf & "您可以随时修改它" & vbcrlf &
pwd & vbcrlf & "再次感谢光临随风起舞!"
mail.send
%>

 

[1]

标签:
|如何|何将|将产|产生|生的|的密|密码|码记|记录|录并|并发|发送|送给|给用|用户|户并|并通|通过|过点|点击|击链|链接|接激|激活|活?|?|

免责声明:本站文章均来自网站采集或用户投稿,网站不提供任何软件下载或自行开发的软件! 如有用户或公司发现本站内容信息存在侵权行为,请邮件告知! 858582#qq.com
桃源资源网 Design By www.nqtax.com