文件名称:封装好的java邮件包
文件大小:6KB
文件格式:JAR
更新时间:2015-12-03 10:55:21
java mail finder-mail
封装好的java邮件包,代码调用示例 public static void main(String[] args) throws Exception { FinderSendMail sendMail; MailInfo mailInfo =new MailInfo(); mailInfo.setTitle("test title"); mailInfo.setFrom("xxx@163.com"); mailInfo.setHost("smtp.163.com"); mailInfo.setTo("xxx@gmail.com"); mailInfo.setUsername("xxx@163.com"); mailInfo.setPassword("xxx"); mailInfo.setContentType("text/html"); mailInfo.setContent("welcome to 技术社区"); sendMail=new FinderSendMail(mailInfo); sendMail.send(); }