Liferay Kaleo workflows: How to get rid of no-reply@liferay.com

Posted on by Charalampos Chrysikopoulos

When a kaleo workflow in Liferay 6.2 sends an email, it adds automatically as the sender the email no-reply@liferay.com. If you want to change that, you can't... at least not directly through the UI of control panel.

You have to go to the workflow XML and change some things there. In the actions element, and above the notification element add a new action element like this:

<action>
    <name>setNotificationStuff onEntry</name>
    <script>
 
workflowContext.put(Packages.com.liferay.portal.kernel.workflow.WorkflowConstants.CONTEXT_NOTIFICATION_SENDER_ADDRESS,"liferay@cosmo-one.gr");   
 
workflowContext.put(Packages.com.liferay.portal.kernel.workflow.WorkflowConstants.CONTEXT_NOTIFICATION_SENDER_NAME,"DEI-DSA");
 
    </script>
    <script-language>javascript</script-language>
    <execution-type>onEntry</execution-type>
</action>

Add as many execution types you need.
Have a look also here.

This entry was posted in Uncategorized and tagged 6.2, email, kaleo, Liferay, liferay 6.2, workflow by Charalampos Chrysikopoulos