摘要: 首先添加命名空间using System.Net.Mail; /// /// 发送邮件 /// /// /// protected void ForMail(string name, string mail) { try { //string email = txtemail.Text.Trim(); MailAddress MessageFrom = new MailAddress("【发件箱地址】"); //发件人邮箱地址 string MessageTo = mail; //收件人邮箱地址 string MessageSubject = bs.HtmlEncode(w 阅读全文
posted @ 2013-12-28 16:35 .Justme 阅读(509) 评论(0) 推荐(0) 编辑