Merge pull request '메일 STMP 정보 변경' (#98) from V2025120101 into main
Reviewed-on: #98
This commit was merged in pull request #98.
This commit is contained in:
@@ -470,9 +470,12 @@ public class Constants {
|
||||
public static final String CHARSET = SYSTEM_CHARSET;
|
||||
|
||||
/* SMTP 메일정보 - RPS */
|
||||
public static final String SMTP_USER = "sales@rps-korea.com";//SMTP USER ID (전체 이메일 주소)
|
||||
public static final String SMTP_USER_PW = "rpstech6125!!"; //SMTP USER PASSWORD
|
||||
public static final String SMTP_HOST = "wblock.rps-korea.com"; //SMTP HOST (gw.rps-korea.com IP)
|
||||
public static final String SMTP_USER = "erp@rps-korea.com";//SMTP USER ID (전체 이메일 주소)
|
||||
public static final String SMTP_USER_PW = "Plmrps123!!"; //SMTP USER PASSWORD
|
||||
public static final String SMTP_HOST = "gwa.rps-korea.com";
|
||||
// public static final String SMTP_USER = "sales@rps-korea.com";//SMTP USER ID (전체 이메일 주소)
|
||||
// public static final String SMTP_USER_PW = "rpstech6125!!"; //SMTP USER PASSWORD
|
||||
// public static final String SMTP_HOST = "wblock.rps-korea.com"; //SMTP HOST (gw.rps-korea.com IP)
|
||||
//public static final String SMTP_HOST = "220.123.92.226"; //SMTP HOST (gw.rps-korea.com IP)
|
||||
public static final int SMTP_PORT = 25; //SMTP PORT (SSL 사용안함)
|
||||
// public static final String SMTP_USER = "admin@wsse.co.kr";//SMTP USER ID [mail.gdnsi.com]
|
||||
|
||||
@@ -610,13 +610,12 @@ public class MailUtil {
|
||||
//prop.put("mail.smtp.socketFactory.class" , "javax.net.ssl.SSLSocketFactory");
|
||||
//prop.put("mail.smtp.socketFactory.port" , Constants.Mail.SMTP_PORT);
|
||||
|
||||
Session mailSession = Session.getDefaultInstance(prop, new javax.mail.Authenticator() {
|
||||
Session mailSession = Session.getInstance(prop, new javax.mail.Authenticator() {
|
||||
protected PasswordAuthentication getPasswordAuthentication() {
|
||||
return new PasswordAuthentication(Constants.Mail.SMTP_USER, Constants.Mail.SMTP_USER_PW);
|
||||
}
|
||||
});
|
||||
mailSession.setDebug(true);
|
||||
mailSession.setDebugOut(new PrintStream(new ByteArrayOutputStream()));
|
||||
|
||||
//◆◆◆ 2. message ◆◆◆◆◆◆◆◆◆◆◆◆◆◆◆◆◆◆◆◆◆◆◆◆◆◆◆◆◆◆◆◆◆◆◆◆◆◆◆◆◆◆◆◆◆◆◆◆◆◆◆◆◆◆◆◆◆◆◆◆◆
|
||||
MimeMessage message = new MimeMessage(mailSession);
|
||||
@@ -838,13 +837,12 @@ public class MailUtil {
|
||||
//prop.put("mail.smtp.socketFactory.class" , "javax.net.ssl.SSLSocketFactory");
|
||||
//prop.put("mail.smtp.socketFactory.port" , Constants.Mail.SMTP_PORT);
|
||||
|
||||
Session mailSession = Session.getDefaultInstance(prop, new javax.mail.Authenticator() {
|
||||
Session mailSession = Session.getInstance(prop, new javax.mail.Authenticator() {
|
||||
protected PasswordAuthentication getPasswordAuthentication() {
|
||||
return new PasswordAuthentication(Constants.Mail.SMTP_USER, Constants.Mail.SMTP_USER_PW);
|
||||
}
|
||||
});
|
||||
mailSession.setDebug(true);
|
||||
mailSession.setDebugOut(new PrintStream(new ByteArrayOutputStream()));
|
||||
|
||||
//◆◆◆ 2. message ◆◆◆
|
||||
MimeMessage message = new MimeMessage(mailSession);
|
||||
|
||||
Reference in New Issue
Block a user