摘要: 需要用到的命名空间:using System.Net.Mail;using System.IO;using System.Text.RegularExpressions;using System.Collections;using System.ComponentModel;发送邮件的方法如下:其中处理附件的代码实现的效果是自动根据文件扩展名获得ContentType值,且发送的附件名与上传的文件名一致。/// /// 发送邮件给相关人/// /// 收件人列表(以分号分隔)/// 附件路劲(服务器端路劲)/// 邮件主题/// 邮件内容/// 使用的系统邮箱/// 系统邮箱密码/// 系统邮 阅读全文
posted @ 2013-08-19 16:50 志在必得Shaun 阅读(1130) 评论(0) 推荐(0) 编辑