是以发邮件的形式取回密码,请问是用smtp还是jmail???

解决方案 »

  1.   

    要装jmail组件   
        
      <%   
      Set   msg   =   Server.CreateObject("JMail.Message")     
      msg.silent   =   true     
      msg.Logging   =   true     
      msg.Charset   =   "gb2312"     
      msg.MailServerUserName   =   "[email protected]"   ''输入smtp服务器验证登陆名   (邮局中任何一个用户的Email地址)     
      msg.MailServerPassword   =   ""     ''输入smtp服务器验证密码     (用户Email帐号对应的密码)     
      msg.From   ="[email protected]"'   Request.Form("email")         ''发件人Email     
      msg.FromName   =   "11"'Request.Form("name")       ''发件人姓名     
      msg.AddRecipient   "[email protected]"     ''收件人Email     
      msg.Subject   =   "信件主题"'Request.Form("subject")     ''信件主题     
      msg.Body   =   "正文"'Request.Form("body")           ''正文     
      'msg.addattachment(server.mappath("new.txt"))   
      msg.Send   ("http://mail.dgemail.com")                 ''smtp服务器地址(企业邮局地址)     
      set   msg   =   nothing     
      response.write("发送成功!")   
      %>   
      

  2.   

    2.0中不是有System.Net.Mail类吗,既然有现成的还是用smtp吧
      

  3.   

    网上有现成的代码的例子啊 smtp的 看一下就可以 我就是用的那个类来完成的