摘要:
string file = Server.MapPath("email_test.txt"); System.Web.Mail.MailMessage mes = new System.Web.Mail.MailMessage(); mes.To = "发送邮箱"; mes.From = "接收邮箱"; MailAttachment mailAttachment = new MailAttachment(file); mes.Attachments.Add(mailAttachment); mes.Fields.Add("h 阅读全文