Properties properties = new Properties();
try {
InputStream is = CommonUtil.class
.getResourceAsStream("/email.properties");
properties.load(is);
is.close();
} catch (Exception e) {
throw new IdesktopException(
"email.properties not found in the CLASSPATH", e);
}
String smtpServer = properties.getProperty("sys.smtpServer");
String sysMail = properties.getProperty("sys.email");
String sysMailUser = properties.getProperty("sys.email.usr");;
String sysMailPwd = properties.getProperty("sys.email.pwd");
try {
InputStream is = CommonUtil.class
.getResourceAsStream("/email.properties");
properties.load(is);
is.close();
} catch (Exception e) {
throw new IdesktopException(
"email.properties not found in the CLASSPATH", e);
}
String smtpServer = properties.getProperty("sys.smtpServer");
String sysMail = properties.getProperty("sys.email");
String sysMailUser = properties.getProperty("sys.email.usr");;
String sysMailPwd = properties.getProperty("sys.email.pwd");