|
|
@@ -37,6 +37,8 @@ public class NetpathyMailSender {
|
|
|
|
|
|
private String domainUrl;
|
|
|
|
|
|
+ private String active;
|
|
|
+
|
|
|
@Autowired
|
|
|
private Environment env;
|
|
|
|
|
|
@@ -85,6 +87,7 @@ public class NetpathyMailSender {
|
|
|
public void init() {
|
|
|
domainUrl = env.getProperty("domain.front");
|
|
|
callbackTelNo = TscConstants.CALLCENTER_TEL_NO;
|
|
|
+ active = env.getProperty("spring.profiles.active");
|
|
|
|
|
|
log.debug("\n\n---- NetpathyMailSender initialization started ----");
|
|
|
log.debug("domainUrl: [{}]", domainUrl);
|
|
|
@@ -127,12 +130,16 @@ public class NetpathyMailSender {
|
|
|
netpathy.setLegacyid(custId);
|
|
|
netpathy.setAutotype("TST");
|
|
|
netpathy.setEmail(toAddress);
|
|
|
-// netpathy.setName(name);
|
|
|
netpathy.setTitle(mailTemplate.getMailtNm());
|
|
|
netpathy.setContent(contentBuilder.toString());
|
|
|
|
|
|
// 메일 생성
|
|
|
- netpathyDao.createMail(netpathy);
|
|
|
+ if ("run".equals(active) || "style".equals(active) || "locp".equals(active)) {
|
|
|
+ netpathyDao.createMail(netpathy);
|
|
|
+ } else {
|
|
|
+ netpathyDao.createMailDev(netpathy);
|
|
|
+ }
|
|
|
+
|
|
|
}
|
|
|
|
|
|
/**
|