摘要: 首先添加:using System.Net.Mail;代码如下,具体自己处理,以符合你的需求: public static bool SendMail(string subject, string body) { bool result = false; try { List<string> toMailList =new List<string>(){ {"sping@sina.com"}, {"springyang@sina.com"} }; if (toMailList.Count > 0) { MailMessage mail = new MailMess 阅读全文
posted @ 2011-02-22 14:22 spring yang 阅读(415) 评论(0) 推荐(0) 编辑