When ever we work with Kaleo workflow in liferay, we will have a mail configuration in that. In Kaleo workflow it adds automatically 'no-reply@liferay.com' as the sender the email.If you want to change that, you can't... at least not directly through the UI of control panel.
The only way to change that email is modifying the XML file, 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,"inthiyaz@liferay.com");
workflowContext.put(Packages.com.liferay.portal.kernel.workflow.WorkflowConstants.CONTEXT_NOTIFICATION_SENDER_NAME,"IMTHU");
</script>
<script-language>javascript</script-language>
<execution-type>onEntry</execution-type>
</action>
The only way to change that email is modifying the XML file, 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,"inthiyaz@liferay.com");
workflowContext.put(Packages.com.liferay.portal.kernel.workflow.WorkflowConstants.CONTEXT_NOTIFICATION_SENDER_NAME,"IMTHU");
</script>
<script-language>javascript</script-language>
<execution-type>onEntry</execution-type>
</action>
3 comments:
Superb. I really enjoyed very much with this article here. Really it is an amazing article I had ever read. I hope it will help a lot for all. Thank you so much for this amazing posts and please keep update like this excellent article.thank you for sharing such a great blog with us. expecting for your.
Digital Marketing Company in India
seo Company in India
This blog is having the general information. Got a creative work and this is very different one.We have to develop our creativity mind.This blog helps for this. Thank you for this blog. This is very interesting and useful.
Android Training in Chennai
Thank you
Post a Comment