<% action=FormatSQL(replace(trim(request("action")),"'","")) if action="next" then set rs=server.CreateObject("adodb.recordset") rs.Open "select * from [user] where useremail='"&trim(request.form("regmail"))&"' " ,conn,1,1 if not(rs.bof and rs.eof) then strUsername=rs("username") strPassword=rs("userpassword") strMsg="一封包含用户名和密码的邮件已发到您的注册邮箱,请查收。" Result=1 strmailcontent=strMailContent & "
"&strusername&",您好:

" strmailcontent=strMailContent & "欢迎您注册成为车饰无忧(http://www.cars51.cn)汽车用品商城会员,我们将为您提供优质的商品和服务!
以下是您的注册信息:

用户名 :"&strusername strmailcontent=strMailContent & "
密   码:"&strpassword&"

请您牢记此信息!当您忘记密码时可以凭此找回,


" strmailcontent=strMailContent & "* 前往车饰无忧首页 ----------- http://www.cars51.cn

" strmailcontent=strMailContent & "* 查看车饰无忧的帮助文档 ----- 帮助文档

" strmailcontent=strMailContent & "* 直接登录您的会员中心 ------- 我的车饰无忧


" strmailcontent=strMailContent & "        再次感谢您注册车饰无忧,祝您购物愉快!

" strMailSubject="找回密码:您在车饰无忧的注册信息!" strEmail = Replace (Trim(request.form("regmail")), "'", "''") strformmail="service@cars51.cn" 'Call SendMail (strUserName,strEmail,strformmail,"您在车饰无忧的注册信息!", strMailContent) Set JMail = Server.CreateObject ("JMail.SMTPMail") JMail.Lazysend = True JMail.MailDomain = "211.100.8.162" JMail.Charset = "gb2312" JMail.ContentType ="text/html" JMail.Sender = "service@cars51.cn" JMail.SenderName = "Cars51" JMail.ReplyTo = "service@cars51.cn" 'JMail.ReturnReceipt = True JMail.Subject = strMailSubject '主题 JMail.ClearRecipients () JMail.AddRecipient stremail '收件人 'JMail.AddRecipientBCC "service@cars51.cn" '暗送 JMail.Body = strmailcontent '邮件内容 JMail.Priority = 1 JMail.AddHeader "Originating-IP", Request.ServerVariables ("Remote_Addr") JMail.Execute () ' 发送Email JMail.Close () Set JMail = Nothing else strMsg="您所填写的邮箱还未被注册,或邮箱格式不正确!" Result=0 end if rs.close set rs=nothing end if %>

  请按提示操作……
<% if action="get" then response.write " 请输入您注册时所填写的邮箱,然后点击下一步" elseif action="next" and result=1 then response.write strMsg elseif action="next" and result=0 then response.write strMsg end if %>
 
<% end if %>
<% if action="get" then %> 注册邮箱: <% if action="get" then %> <% end if %>  
<% if action="get" then %> <% elseif action="next" and result=1 then %> 登录 <% elseif action="next" and result=0 then %> 返  回 <%end if%>
   
注册会员