Browse Source

메일양식 수정

SBK 2 years ago
parent
commit
147cd278bb

+ 3 - 2
src/main/java/sgc/portal/com/sym/mail/service/MailService.java

@@ -82,6 +82,7 @@ public class MailService {
 		String smtpUser = (String) mailInfo.get(0).get("esbsCd2");		// SMTP인증 아이디
 		String smtpPw 	= (String) mailInfo.get(0).get("esbsCd3");		// SMTP인증 비밀번호
 		String link 	= (String) mailInfo.get(0).get("esbsCd4");		// 링크
+		String cmpn 	= (String) mailInfo.get(0).get("esbsCd5");		// 회사구분
         
         String fromEmail = "";
 		String fromName = "";
@@ -125,7 +126,7 @@ public class MailService {
 		contentBase.append("     <td height='72'>                                                                                                                                                                                                                                          \n");
 		contentBase.append("     <table width='100%' border='0' cellpadding='0' cellspacing='0' background='"+link+"/resources/images/mail/top_bg.gif' style='background-repeat:repeat-x;'>                                                                                                                 \n");
 		contentBase.append("       <tr>                                                                                                                                                                                                                                                    \n");
-		contentBase.append("         <td height='72' align='left' valign='top'><img src='"+link+"/resources/images/mail/top_logo.gif' width='187' height='72' alt=SGC이테크건설' /></td>                                                                                                                            \n");
+		contentBase.append("         <td height='72' align='left' valign='top'><img src='"+link+"/resources/images/mail/top_logo_"+cmpn+".gif' width='187' height='72' alt=SGC이테크건설' /></td>                                                                                                                            \n");
 		contentBase.append("         <td width='100%'>&nbsp;</td>                                                                                                                                                                                                                          \n");
 		contentBase.append("         <td align='right' valign='top'></td>                                                                                                                                                           \n");
 		contentBase.append("       </tr>                                                                                                                                                                                                                                                   \n");
@@ -167,7 +168,7 @@ public class MailService {
 		contentBase.append("         <td align='left' valign='top' background='"+link+"/resources/images/mail/sign_c.gif' style='background-repeat:repeat-x; text-align:left'>                                                                                                                              \n");
 		contentBase.append("          <table width='800' border='0' cellpadding='0' cellspacing='0'>                                                                                                                                                                                       \n");
 		contentBase.append("           <tr>                                                                                                                                                                                                                                                \n");
-		contentBase.append("             <td colspan='2'><img src='"+link+"/resources/images/mail/sign_logo.gif' width='300' height='50' alt='We build your dream SGC이테크건설' /></td>                                                                                                                             \n");
+		contentBase.append("             <td colspan='2'><img src='"+link+"/resources/images/mail/sign_logo_"+cmpn+".gif' width='300' height='50' alt='We build your dream SGC이테크건설' /></td>                                                                                                                             \n");
 		contentBase.append("             </tr>                                                                                                                                                                                                                                             \n");
 		contentBase.append("           <tr>                                                                                                                                                                                                                                                \n");
 		contentBase.append("             <td width='36' height='22' align='center' valign='middle'><img src='"+link+"/resources/images/mail/sign_icon.gif' width='13' height='13' alt='' /></td>                                                                                                                             \n");

+ 0 - 0
src/main/webapp/resources/images/mail/sign_logo.gif → src/main/webapp/resources/images/mail/sign_logo_etec.gif


+ 0 - 0
src/main/webapp/resources/images/mail/top_logo.gif → src/main/webapp/resources/images/mail/top_logo_etec.gif