Release : All Supported Releases
Check the GEL script to make sure the GEL pulls from the SMTP host from the properties file.
Example of Sample Gel Script
<core:invokeStatic className="java.lang.System" method="getenv" var="NIKU_HOME">
<core:arg value="NIKU_HOME"/>
</core:invokeStatic>
<gel:parse file="${NIKU_HOME}/config/properties.xml" var="properties"/>
<gel:set asString="true" select="$properties//mailServer/@host" var="SMTPServerHost"/>
<gel:set asString="true" var="SMTPServer" select="$properties//mailServer/@host"/>
<gel:log> SMTPServer : ${SMTPServer}</gel:log> < -- This will display the mail host value that is configured in the properties.xml in the process log, and was very helpful during troubleshooting
<!-- Initiate a new java mail session -->
<core:new className="java.util.Properties" var="props" />
<core:set value="${props.put('mail.transport.protocol', 'smtp')}" var="void" />
<core:set value="${props.put('mail.smtp.host', SMTPServer)}" var="void" />
<core:set value="${props.put('mail.smtp.auth', 'false)}" var="void" />