AnsweredAssumed Answered

SMTP config in bb-config.properties

Question asked by jsloane on May 8, 2019

Hi all,

 

I have a building block that sends email using the old BbMail API. I'm changing it to use the JavaMail API but I'm having trouble getting the SMTP config.

 

As I understand it, the below code returns the config in the bb-config.properties file, but this doesn't match the configuration that's set in the System Admin GUI.

ConfigurationServiceFactory.getInstance().getBbProperty(BbConfig.SMTPSERVER_HOSTNAME);
ConfigurationServiceFactory.getInstance().getBbProperty(BbConfig.SMTPSERVER_PORT);

 

Is there a new "SaaS compatible" way to get the smtp config, assuming bb-config.properties is no longer used for smtp in SaaS instances?

 

Thanks

Outcomes