2011年4月11日
摘要: 临时需要开发的一个通过excel发送附件工资条的工具1. 读取excel 模板邮箱发送邮件2. 薪资项是生成的附件htm文件3. 发送成功和失败记录有日志记载预览:核心代码://发件人地址 MailAddress from = new MailAddress(fromEmail, fromEmail); //收件人地址 MailAddress to = new MailAddress(emailTo); MailMessage message = new MailMessage(from, to); message.Subject = System.Configuration.Configur 阅读全文
posted @ 2011-04-11 12:42 张子 阅读(975) 评论(0) 推荐(1) 编辑