|
From: <bob...@us...> - 2003-11-04 06:55:03
|
Update of /cvsroot/ebxmlms/ebxmlms/src/hk/hku/cecid/phoenix/message/transport
In directory sc8-pr-cvs1:/tmp/cvs-serv2111/src/hk/hku/cecid/phoenix/message/transport
Modified Files:
Tag: b0931
Mail.java
Log Message:
Make smpt port configurable on msh.properties.xml
Index: Mail.java
===================================================================
RCS file: /cvsroot/ebxmlms/ebxmlms/src/hk/hku/cecid/phoenix/message/transport/Mail.java,v
retrieving revision 1.35.2.6
retrieving revision 1.35.2.7
diff -C2 -d -r1.35.2.6 -r1.35.2.7
*** Mail.java 17 Jul 2003 09:41:59 -0000 1.35.2.6
--- Mail.java 4 Nov 2003 06:55:00 -0000 1.35.2.7
***************
*** 201,205 ****
*/
public static final String PROPERTY_JAVA_MAIL_SMTP_HOST_PORT =
! "mail.smtp.host.port";
/**
--- 201,205 ----
*/
public static final String PROPERTY_JAVA_MAIL_SMTP_HOST_PORT =
! "mail.smtp.port";
/**
***************
*** 338,341 ****
--- 338,343 ----
*/
private static boolean changeSubType;
+
+ private static String smtpPort;
protected static boolean isConfigured = false;
***************
*** 360,363 ****
--- 362,366 ----
smtpHost = prop.get(PROPERTY_MAIL_SMTP_HOST);
+ smtpPort = prop.get(PROPERTY_JAVA_MAIL_SMTP_HOST_PORT);
smtpAuthUser = prop.get(PROPERTY_MAIL_SMTP_AUTH_USER);
smtpAuthPass = prop.get(PROPERTY_MAIL_SMTP_AUTH_PASS);
***************
*** 508,511 ****
--- 511,517 ----
final Properties properties = new Properties();
properties.put(PROPERTY_JAVA_MAIL_SMTP_HOST, smtpHost);
+ if (smtpPort != null) {
+ properties.put(PROPERTY_JAVA_MAIL_SMTP_HOST_PORT, smtpPort);
+ }
Session session;
|