摘要:
C#最初采用的是System.Web.Mail命名空间下的类发送邮件,后来经过改进,采用System.Net.Mail命名空间下的类发送邮件.当然前者仍然可用,只是后者功能更强大.用System.Net.Mail发送邮件的原理如下:核心就是调用SmtpClient类的send(newMessage)方法,其中的参数newMessage是一个MailMessage对象,所以我们在调用send(newMessage)方法前,须实例化MailMessage类,然后对newMessage的属性设值。引用llsen http://hi.csdn.net/link.php?url=http://blog. 阅读全文
posted @ 2009-11-10 22:10
GT_Andy
阅读(4400)
评论(2)
推荐(0)
摘要:
using system; using system.text; using system.io; using system.net; using system.net.sockets; using system.collections; namespace skydev.web.mail { public enum mailformat{text,html}; public enum mailpriority{low=1,normal=3,high=5}; #region class mailattachments public class mailattachments { private 阅读全文
posted @ 2009-11-10 22:02
GT_Andy
阅读(810)
评论(0)
推荐(0)
摘要:
因现在的工作需要,我得从WinForm的平台,转型到WebForm的页面。有一年多没有接触SQL Server了,虽然大学时有点基础,但也忘记得差不多了。因为Asp.net型的B/S网站和WinForm的还是有点不同,现在工作起来不是那么得心应手。温故而知新,就把以前实习时做的的网站源代码拿出来看看。因为要用到SQL 2005S数据库,还好昨晚碰到以前实习的同学,问她要了一备份(没有任何扩展名的,比如*.bak)她说只要还原下就行了。但昨晚回去在自己的本本上试验了多次,都以失败而告终,貌似要SQL 2005/2008才可以还原。今天下午做完工作后没事干,也就又拿回来配了,刚好公司电脑是SQL 阅读全文
posted @ 2009-11-10 20:46
GT_Andy
阅读(7702)
评论(0)
推荐(0)