I found the solution if somebody needs it.
You have to configurate two thing the smt server and the userinfo.properties.
The way i found to configurate the SMTP server is to modify the standalone-full.xml (\jbpm-installer\jboss-as-7.1.1.Final\standalone\configuration) adding the next lines:
<mail-session jndi-name="java:/mail/jbpmMailSession" from="firstname.lastname@example.org">
<login name="josetf" password="pass"/>
<mail-session jndi-name="java:jboss/mail/Default" debug="true">
and at the end of the file the adress and port of the server:
<remote-destination host="x.x.x.x" port="x"/>
To edit the userinfo.properties (jbpm-console.war\WEB-INF\classes) you have to add your user email in there:
if you get a null pointer exception maybe you need to add the next line too:
I hope it helps.
Thank you for posting helpful answer.
Can you explain how to configure email in bpmn process? I cannot see any email activity in jbpm eclipse plugin.
My requirement is to send out emails from bpmn process to requester/approvers.
Can you use the Kie WorkBench?
If you can you have a component in the service menu called Email, if you want this one to work you have to configurate the CustomWorkItemHandlers.conf (jbpm-console.war\WEB-INF\classes\META-INF) and add this line:
"Email": new org.jbpm.process.workitem.email.EmailWorkItemHandler("host","port","email@example.com","pass")
or if you are using the human task you can go it as i wrote before.
I hope it helps
Thank you for your reply.
I cannot use Workbench. I have developed a web application using eclipse and changed default jbpm database to MySQL database.
And yes I have used human tasks. But in human tasks properties I cannot see anything to send emails/notifications.
Am I missing something? Can you explain how can I send emails using human tasks?
I appreciate your time.