Search in sources :

Example 1 with Mail

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);
}
Also used : Mail(com.kyj.fx.voeditor.visual.framework.mail.Mail) HashMap(java.util.HashMap) SenderMailInfo(com.kyj.fx.voeditor.visual.framework.mail.SenderMailInfo) Test(org.junit.Test)

Example 2 with Mail

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);
}
Also used : Mail(com.kyj.fx.voeditor.visual.framework.mail.Mail) HashMap(java.util.HashMap) Test(org.junit.Test)

Aggregations

Mail (com.kyj.fx.voeditor.visual.framework.mail.Mail)2 HashMap (java.util.HashMap)2 Test (org.junit.Test)2 SenderMailInfo (com.kyj.fx.voeditor.visual.framework.mail.SenderMailInfo)1