@Resource(name="emailContentManager")
private EmailContentManager emailContentManager;
protected ConnectionConfig getEmailConnectionConfig( ){
ConnectionConfig config = null;
if( systemParamManager != null ){
config = systemParamManager.getEmailConnectionConfig();
}
if( systemConfig == null )
return config;
if( config == null ){
config = new ConnectionConfig();
config.setHost( this.systemConfig.getProperty(
MailConfigConstants.EMAIL_HOST_KEY ) );
config.setPort( this.systemConfig.getProperty(
MailConfigConstants.EMAIL_PORT_KEY ) );
config.setUsername( this.systemConfig.getProperty(
MailConfigConstants.EMAIL_USERNAME_KEY ) );
config.setPassword( this.systemConfig.getProperty(
MailConfigConstants.EMAIL_PASSWORD_KEY ) );
config.setSsl( "true".equalsIgnoreCase(systemConfig.getProperty(
MailConfigConstants.EMAIL_SSL_KEY ) ));
}
return config;
}