We are trying to replace the mailhost parameter which is being passed at the moment in the pipeline with a variable in the Extended setting. ( mail.smtp.host=aasmtp01.aaa.aa.aa.com )
The issue is we don’t want to change the code by unmapping the present mailhost mapping. If the mailhost entry is empty or null from the configuration file, it should pick up the value from the extended setting and send the email.
The problem is , if the mapping is removed in the code, it works by picking up the value from the extended setting, but if a mailhost tag is not supplied with a value in the configuration file, the extended setting value is not being picked up.
The SAG documentation says as below
mailhost String SMTP host name for outbound messages. For example:
smtp.webMethods.com
If no value is provided for the mailhost parameter, Integration
Server uses the value of the system property mail.smtp.host in the
startup.bat (startup.sh) file as the mailhost value.
what does no value mean ?? no mapping at all or does it include scenarios where a null value can be passed in the pipeline
Any ideas would be appreciated.