关于发送邮件的问题! 不过你把引用添上也发不了,理由是.NET中只支技SMTP协议,而你用的pop.126.com服务器不支持SMTP协议(支持ESMTP协议,需要密码验证.几乎现在所有的服务器都是如此.OUTLOOK中也是需要设置密码验证)你需要跟据ESMTP协议来自己写代码.相关资料可以到天极网去找,有一篇VB的文章 解决方案 » 免费领取超大流量手机卡,每月29元包185G流量+100分钟通话, 中国电信官方发货 我知道是怎么回事了,我创建的是windows程序,所以不能用哪个命名空间!应该是创建asp程序! windows应用程序中应该添加引用。。.net程序集中的System.web,然后就可以using System.Web.Mail;了 '以下是完整的代码Dim email As New System.Web.Mail.MailMessageemail.To = "[email protected]"email.From = "[email protected]"email.Body = "MessageText"email.Subject = "SubjectText"email.BodyFormat = Web.Mail.MailFormat.Textemail.Fields.Add("http://schemas.microsoft.com/cdo/configuration/smtpauthenticate", "1")'将以下三行中中的,第2个参数,设为你的smtp相应值,即可email.Fields.Add("http://schemas.microsoft.com/cdo/configuration/smtpserver", "smtp.163.net")email.Fields.Add("http://schemas.microsoft.com/cdo/configuration/sendusername", "smtpuser")email.Fields.Add("http://schemas.microsoft.com/cdo/configuration/sendpassword", "password")System.Web.Mail.SmtpMail.Send(email) 求数据库保存加密数据,解密的思路? 在C#中如何用webbowser控件得到验证码的值? Function错误 c#压缩!!! 一个关于界面图形按钮的问题 事件与委托 在此论坛中能不能粘贴图片,我想把我的WEB界面显示出来讨论一下。 怎样给工具条编程相应的事件??在线请教!! 可访问性不一致 在使用 Visual Studio .Net 过程中,已知或已经发现的问题或 bug 报告 请问如何用C#从win2000系统中获取win16程序的句柄 新手的困惑:.net 技术究竟是指什么?C#?VB.NET? VC.NET? OR ASP.NET?
asp程序!
email.To = "[email protected]"
email.From = "[email protected]"
email.Body = "MessageText"
email.Subject = "SubjectText"
email.BodyFormat = Web.Mail.MailFormat.Textemail.Fields.Add("http://schemas.microsoft.com/cdo/configuration/smtpauthenticate", "1")
'将以下三行中中的,第2个参数,设为你的smtp相应值,即可
email.Fields.Add("http://schemas.microsoft.com/cdo/configuration/smtpserver", "smtp.163.net")
email.Fields.Add("http://schemas.microsoft.com/cdo/configuration/sendusername", "smtpuser")
email.Fields.Add("http://schemas.microsoft.com/cdo/configuration/sendpassword", "password")System.Web.Mail.SmtpMail.Send(email)