|
|
@@ -5,6 +5,7 @@ import java.util.List;
|
|
|
|
|
|
import javax.annotation.PostConstruct;
|
|
|
|
|
|
+import com.style24.core.support.env.TscConstants;
|
|
|
import org.springframework.beans.factory.annotation.Autowired;
|
|
|
import org.springframework.cache.annotation.Cacheable;
|
|
|
import org.springframework.core.env.Environment;
|
|
|
@@ -31,10 +32,10 @@ import com.gagaframework.web.util.GagaStringUtil;
|
|
|
@Slf4j
|
|
|
public class NetpathyMailSender {
|
|
|
|
|
|
-// // 발신자전화번호
|
|
|
-// private String callbackTelNo;
|
|
|
-//
|
|
|
-// private String domainUrl;
|
|
|
+ // 발신자전화번호
|
|
|
+ private String callbackTelNo;
|
|
|
+
|
|
|
+ private String domainUrl;
|
|
|
|
|
|
@Autowired
|
|
|
private Environment env;
|
|
|
@@ -82,13 +83,13 @@ public class NetpathyMailSender {
|
|
|
|
|
|
@PostConstruct
|
|
|
public void init() {
|
|
|
-// domainUrl = env.getProperty("domain.front");
|
|
|
-// callbackTelNo = TscConstants.CALLCENTER_TEL_NO;
|
|
|
+ domainUrl = env.getProperty("domain.front");
|
|
|
+ callbackTelNo = TscConstants.CALLCENTER_TEL_NO;
|
|
|
|
|
|
-// log.debug("\n\n---- NetpathyMailSender initialization started ----");
|
|
|
-// log.debug("domainUrl: [{}]", domainUrl);
|
|
|
-// log.debug("callbackTelNo: [{}]", callbackTelNo);
|
|
|
-// log.debug("\n--- NetpathyMailSender initialization completed ----\n");
|
|
|
+ log.debug("\n\n---- NetpathyMailSender initialization started ----");
|
|
|
+ log.debug("domainUrl: [{}]", domainUrl);
|
|
|
+ log.debug("callbackTelNo: [{}]", callbackTelNo);
|
|
|
+ log.debug("\n--- NetpathyMailSender initialization completed ----\n");
|
|
|
}
|
|
|
|
|
|
/**
|
|
|
@@ -146,6 +147,7 @@ public class NetpathyMailSender {
|
|
|
mailTemplate.setMailtNm(GagaStringUtil.replace(this.mergeData(mailTemplate.getMailtNm(), replaceInfo), ">", ">"));
|
|
|
mailTemplate.setMailhContent(GagaStringUtil.replace(this.mergeData(mailTemplate.getMailhContent(), replaceInfo), ">", ">"));
|
|
|
mailTemplate.setMailfContent(GagaStringUtil.replace(this.mergeData(mailTemplate.getMailfContent(), replaceInfo), ">", ">"));
|
|
|
+ mailTemplate.setMailContent(GagaStringUtil.replace(this.mergeData(mailTemplate.getMailContent(), replaceInfo), ">", ">"));
|
|
|
|
|
|
return mailTemplate;
|
|
|
}
|