use of com.kyj.fx.voeditor.visual.framework.mail.Mail in project Gargoyle by callakrsos.
the class MailUtilTest method sendMailTest.
@Test
public void sendMailTest() throws Exception {
Mail mail = new Mail();
mail.setMailTo(new String[] { "", "" });
Map<String, Object> velocityContext = new HashMap<>();
velocityContext.put("seq", "667");
velocityContext.put("date", "2015-09-12");
velocityContext.put("numbers", "테스트번호입니다.");
SenderMailInfo senderMailInfo = new SenderMailInfo();
senderMailInfo.setSendUserId("");
senderMailInfo.setSendUserPassword("");
MailUtil.sendMail(senderMailInfo, mail, velocityContext);
}
use of com.kyj.fx.voeditor.visual.framework.mail.Mail in project Gargoyle by callakrsos.
the class MailUtilTest method bodyMailTest.
@Test
public void bodyMailTest() throws Exception {
Mail mail = new Mail();
mail.setMailTo(new String[] { "" });
Map<String, Object> velocityContext = new HashMap<>();
velocityContext.put("seq", "667");
velocityContext.put("date", "2015-09-12");
velocityContext.put("numbers", "테스트번호입니다.");
MailUtil.sendMail(Arrays.asList(mail), velocityContext);
}
Aggregations