2013年11月3日

摘要: 最近在项目中用到发送邮件的功能,由于以前没有接触过,找了很多资料才终于把它弄出来,今天写下这些,算是做个总结吧。1、首先定义一个邮件的数据结构类public class EmailData() { String from = null;//发件人String[] recipients = null;//收件人,可以多个String subject = null;//邮件主题String content = null;//邮件内容String contentType = null;//邮件内容格式(文本或html)String fileName = null;//附件文件名(目前只提供一个附件) 阅读全文
posted @ 2013-11-03 10:48 bin斌 阅读(152) 评论(0) 推荐(0) 编辑

导航