简单的代码发送邮件代码:private void SendEmail() { MailMessage objMailMessage; Attachment objMailAttachment; // 创建一个附件对象 objMailAttachment = new Attachment("d:\\test.txt");//发送邮件的附件 // 创建邮件消息 objMailMessage = new MailMessage(); objMailMessage.From = new ... Read More