1 Reply Latest reply on May 23, 2014 4:40 AM by Jeewani Lakshani

    SMTP email generation through JBPM6

    Jeewani Lakshani Newbie

      Hi,

      I am currently configuring email service task from JBPM 6 and configured my standalone-full.xml as follows;

      <subsystem xmlns="urn:jboss:domain:mail:1.0">

                  <mail-session jndi-name="java:jboss/mail/Default">

                      <smtp-server ssl="true" outbound-socket-binding-ref="mail-smtp">

                          <login name="@gmail.com" password="*****"/>

                      </smtp-server>

                  </mail-session>

              </subsystem>

      ==========

      <outbound-socket-binding name="mail-smtp">

                  <remote-destination host="smtp.gmail.com" port="587"/>

       

      But when i running the process definition i get the following error. Kindly assist me since i am stuck with the middle of the project. 

       

      Caused by: java.lang.RuntimeException: Unable to send email

        at org.jbpm.process.workitem.email.SendHtml.sendHtml(SendHtml.java:73) [jbpm-workitems-6.0.1.Final.jar:6.0.1.Final]

        at org.jbpm.process.workitem.email.SendHtml.sendHtml(SendHtml.java:45) [jbpm-workitems-6.0.1.Final.jar:6.0.1.Final]

        at org.jbpm.process.workitem.email.EmailWorkItemHandler.executeWorkItem(EmailWorkItemHandler.java:69) [jbpm-workitems-6.0.1.Final.jar:6.0.1.Final]

        ... 73 more

      Caused by: java.lang.RuntimeException: Connection failure

        at org.jbpm.process.workitem.email.SendHtml.sendHtml(SendHtml.java:67) [jbpm-workitems-6.0.1.Final.jar:6.0.1.Final]

        ... 75 more

      Caused by: com.sun.mail.smtp.SMTPSendFailedException: 530 5.7.0 Must issue a STARTTLS command first. zm8sm51298199obc.16 - gsmtp

       

       

        at com.sun.mail.smtp.SMTPTransport.issueSendCommand(SMTPTransport.java:2057) [mail-1.4.4.jar:1.4.4]

        at com.sun.mail.smtp.SMTPTransport.mailFrom(SMTPTransport.java:1580) [mail-1.4.4.jar:1.4.4]

        at com.sun.mail.smtp.SMTPTransport.sendMessage(SMTPTransport.java:1097) [mail-1.4.4.jar:1.4.4]

        at org.jbpm.process.workitem.email.SendHtml.sendHtml(SendHtml.java:65) [jbpm-workitems-6.0.1.Final.jar:6.0.1.Final]

        ... 75 more

        • 1. Re: SMTP email generation through JBPM6
          Jeewani Lakshani Newbie

          Please someone kindly assist me. I want this urgently. I have tried but it is not working.

          Caused by: org.jbpm.bpmn2.handler.WorkItemHandlerRuntimeException: java.lang.RuntimeException: Unable to send email

                  at org.jbpm.process.workitem.AbstractLogOrThrowWorkItemHandler.handleException(AbstractLogOrThrowWorkItemHandler.java:40) [jbpm-workitems-6.0.1.Final.jar:6.0.1.Fi

                  at org.jbpm.process.workitem.AbstractLogOrThrowWorkItemHandler.handleException(AbstractLogOrThrowWorkItemHandler.java:23) [jbpm-workitems-6.0.1.Final.jar:6.0.1.Fi

                  at org.jbpm.process.workitem.email.EmailWorkItemHandler.executeWorkItem(EmailWorkItemHandler.java:75) [jbpm-workitems-6.0.1.Final.jar:6.0.1.Final]

                  at org.drools.persistence.jpa.processinstance.JPAWorkItemManager.internalExecuteWorkItem(JPAWorkItemManager.java:56) [drools-persistence-jpa-6.0.1.Final.jar:6.0.1

                  at org.jbpm.workflow.instance.node.WorkItemNodeInstance.internalTrigger(WorkItemNodeInstance.java:124) [jbpm-flow-6.0.1.Final.jar:6.0.1.Final]

                  ... 73 more

          Caused by: java.lang.RuntimeException: Unable to send email

                  at org.jbpm.process.workitem.email.SendHtml.sendHtml(SendHtml.java:73) [jbpm-workitems-6.0.1.Final.jar:6.0.1.Final]

                  at org.jbpm.process.workitem.email.SendHtml.sendHtml(SendHtml.java:45) [jbpm-workitems-6.0.1.Final.jar:6.0.1.Final]

                  at org.jbpm.process.workitem.email.EmailWorkItemHandler.executeWorkItem(EmailWorkItemHandler.java:69) [jbpm-workitems-6.0.1.Final.jar:6.0.1.Final]

                  ... 75 more

          Caused by: java.lang.RuntimeException: Connection failure

                  at org.jbpm.process.workitem.email.SendHtml.sendHtml(SendHtml.java:67) [jbpm-workitems-6.0.1.Final.jar:6.0.1.Final]

                  ... 77 more

          Caused by: com.sun.mail.smtp.SMTPSendFailedException: 530 5.7.0 Must issue a STARTTLS command first. jd5sm3452656pbb.18 - gsmtp

           

           

                  at com.sun.mail.smtp.SMTPTransport.issueSendCommand(SMTPTransport.java:2057) [mail-1.4.4.jar:1.4.4]

                  at com.sun.mail.smtp.SMTPTransport.mailFrom(SMTPTransport.java:1580) [mail-1.4.4.jar:1.4.4]

                  at com.sun.mail.smtp.SMTPTransport.sendMessage(SMTPTransport.java:1097) [mail-1.4.4.jar:1.4.4]

                  at org.jbpm.process.workitem.email.SendHtml.sendHtml(SendHtml.java:65) [jbpm-workitems-6.0.1.Final.jar:6.0.1.Final]