Просмотр исходного кода

메일 헤더 푸터 다 나오게 수정

jsshin 5 лет назад
Родитель
Сommit
0a231e1c59

+ 5 - 1
src/main/java/com/style24/core/biz/thirdparty/NetpathyMailSender.java

@@ -118,6 +118,10 @@ public class NetpathyMailSender {
 	public void send(Integer mailtSq, String toAddress, GagaMap replaceInfo, String custId) {
 		// 메일템플릿 조회
 		MailTemplate mailTemplate = this.getMailTemplate(mailtSq, replaceInfo);
+		StringBuilder contentBuilder = new StringBuilder();
+		contentBuilder.append(mailTemplate.getMailhContent());
+		contentBuilder.append(mailTemplate.getMailContent());
+		contentBuilder.append(mailTemplate.getMailfContent());
 
 		Netpathy netpathy = new Netpathy();
 		netpathy.setLegacyid(custId);
@@ -125,7 +129,7 @@ public class NetpathyMailSender {
 		netpathy.setEmail(toAddress);
 //		netpathy.setName(name);
 		netpathy.setTitle(mailTemplate.getMailtNm());
-		netpathy.setContent(mailTemplate.getMailContent());
+		netpathy.setContent(contentBuilder.toString());
 
 		// 메일 생성
 		netpathyDao.createMail(netpathy);