ASP.NET2.0发送邮件实例
摘要:
以前写过1.1的代码,那是用System.web.mail,可是以前的写法在2005里面会警告了。不爽,改成2.0的写法,需要using System.Net.Mail。代码如下: System.Net.Mail.MailMessage mailObj = new System.Net.Mail.MailMessage(); mailObj.IsBodyHtml = true; mailObj.Subject = "Test ASP.Net2.0 Mail"; mailObj.Body = "You did a good job.& 阅读全文
posted @ 2007-08-23 10:44 catvi 阅读(155) 评论(0) 推荐(0) 编辑