Package com.etown.util.email

Examples of com.etown.util.email.MailMessage.saveChanges()


     
      String filePath = System.getProperty("web.home")+System.getProperty("regTplHtml");
      String content=FileUtil.readAll(filePath);
      content=StringUtil.format(content, new String[]{nickName,userName,validateCode});
      mail1.setContent(content);
      mail1.saveChanges();
      mailSuccess=sender.send(mail1);
    } catch (Exception e) {
      log.error("发送验证邮件失败");
      mailSuccess=false;
    }
View Full Code Here

TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.