$config in operationBinding.mail attributes

SmartClient Version: v13.1p_2026-09-16/Enterprise Deployment (built 2026-09-16)

Hi, I’m trying to use $config in a mail operationBinding tag, like this:

<host>$config.getProperty("myHost")</host>

but it doesn’t seem to work, I see in the logs:

2026-09-18T17:01:23,991 [tid:52] INFO MailMessage trying to connect to .getProperty("myHost")
2026-09-18T17:01:24,048 [tid:52] DEBUG MailMessage Caught MessagingException com.sun.mail.util.MailConnectException: Couldn't connect to host, port: .getProperty("myHost"), 25; timeout 2000;
  nested exception is:
    java.net.UnknownHostException: .getProperty("myHost")
    at com.sun.mail.smtp.SMTPTransport.openServer(SMTPTransport.java:2209)
    at com.sun.mail.smtp.SMTPTransport.protocolConnect(SMTPTransport.java:740)
    at javax.mail.Service.connect(Service.java:366)
    at javax.mail.Service.connect(Service.java:246)
    at javax.mail.Service.connect(Service.java:195)
    at com.isomorphic.mail.MailMessage.initMessage(MailMessage.java:640)
    at com.isomorphic.mail.MailMessage.buildMessage(MailMessage.java:449)
    at com.isomorphic.mail.TemplatedMailMessage.buildMessage(TemplatedMailMessage.java:294)
    at com.isomorphic.datasource.DSRequest.executePostTransformOperations(DSRequest.java:5580)
    at com.isomorphic.datasource.DSRequest.execute(DSRequest.java:4908)
    at com.isomorphic.servlet.RESTHandler.handleDSRequest(RESTHandler.java:903)
    ....

am I missing something?

The Velocity method-call syntax

$config.getProperty("myHost"))

was not working in this context due to an issue in the DS configuration loader. This has been fixed and will be available in the nightly 13.1p build from October 6 onward.

Meanwhile you can use the universal syntax for referencing server.properties values in DataSource XML attributes is the bracket notation:

<host>$config["myHost"]</host>