简单的代码发送邮件代码:private void SendEmail() { MailMessage objMailMessage; Attachment objMailAttachment; // 创建一个附件对象 objMailAttachment = new Attachment("d:\\test.txt");//发送邮件的附件 // 创建邮件消息 objMailMessage = new MailMessage(); objMailMessage.From = new ... Read More
posted @ 2013-06-19 17:21 double_ed Views(194) Comments(0) Diggs(0) Edit