[jboss-user] [jBPM] - jbpm4.4 failed to send email

wiwengweng wen do-not-reply at jboss.com
Mon Oct 31 06:26:03 EDT 2011


wiwengweng wen [http://community.jboss.org/people/wiwengweng] created the discussion

"jbpm4.4 failed to send email"

To view the discussion, visit: http://community.jboss.org/message/634225#634225

--------------------------------------------------------------
when I config the jbpm4.4 to send email. I wonder if there is a tuitor that can help me out first, then I don't have to bother all you guys. I config the jbpm.mail.cfg.xml file and the default.cfg.xml as follows:


*******************************************************

mail.cfg.xml

mail.smtp.host=smtp.163.com

mail.smtp.port=25

 mailto:mail.from=ylyy-1985 at 163.com mail.from=ylyy-1985 at 163.com

mail.smtp.auth=true

********************************************************
default.cfg.xml:::

<?xml version="1.0" encoding="UTF-8"?>

<jbpm-configuration>

  <import resource="jbpm.default.scriptmanager.xml" />
  <import resource="jbpm.mail.templates.xml" />

  <process-engine-context>

    <repository-service />
    <repository-cache />
    <execution-service />
    <history-service />
    <management-service />
    <identity-service />
    <task-service />

    <object class="org.jbpm.pvm.internal.id.DatabaseDbidGenerator">
      <field name="commandService"><ref object="newTxRequiredCommandService" /></field>
    </object>

    <object class="org.jbpm.pvm.internal.id.DatabaseIdComposer" init="eager" />

    <object class="org.jbpm.pvm.internal.el.JbpmElFactoryImpl" />

    <types resource="jbpm.variable.types.xml" />

    <address-resolver />

  </process-engine-context>

  <transaction-context>
    <repository-session />
    <db-session />

    <message-session />
    <timer-session />

    <history-sessions>
      <object class="org.jbpm.pvm.internal.history.HistorySessionImpl" />
    </history-sessions>

<mail-session>

       <mail-server>

         <session-properties resource= "jbpm.mail.properties"  />

         <authenticator class= "org.jbpm.test.wyl.MyAuthen" >

          <field name= "userName" ><string value= "ylyy" /></field>

          <field name= "passWord" ><string value= (my password of the mailbox )/></field>

         </authenticator>

       </mail-server>

     </mail-session> 
  </transaction-context>

</jbpm-configuration>


******************************************************

then I meet this problem.in fact, I don't know what is the authentication, and how to do that . but just follow a example to do this.


### EXCEPTION ###########################################
18:13:50,093 INF | [DefaultCommandService] exception while executing command org.jbpm.pvm.internal.cmd.StartProcessInstanceInLatestCmd at 6cef4
org.jbpm.api.JbpmException: could not send email: javax.mail.internet.MimeMessage at 11b86c7
    at org.jbpm.pvm.internal.email.impl.MailSessionImpl.send(MailSessionImpl.java:60)
    at org.jbpm.test.wyl.TestMail2.main(TestMail2.java:32)
Caused by: com.sun.mail.smtp.SMTPSendFailedException: 553 You are not authorized to send mail, authentication is required

    at com.sun.mail.smtp.SMTPTransport.issueSendCommand(SMTPTransport.java:1515)
    at com.sun.mail.smtp.SMTPTransport.mailFrom(SMTPTransport.java:1054)
    at com.sun.mail.smtp.SMTPTransport.sendMessage(SMTPTransport.java:634)
    at org.jbpm.pvm.internal.email.impl.MailSessionImpl.send(MailSessionImpl.java:51)
    ... 16 more
### EXCEPTION ###########################################
18:13:50,093 FIN | [HibernateSessionResource] ----- rolling back hibernate tx 16586768 -----------------------------------------------------
Exception in thread "main" org.jbpm.api.JbpmException: could not send email: javax.mail.internet.MimeMessage at 11b86c7
    at org.jbpm.pvm.internal.email.impl.MailSessionImpl.send(MailSessionImpl.java:60)

Caused by: com.sun.mail.smtp.SMTPSendFailedException: 553 You are not authorized to send mail, authentication is required

    at com.sun.mail.smtp.SMTPTransport.issueSendCommand(SMTPTransport.java:1515)
    at com.sun.mail.smtp.SMTPTransport.mailFrom(SMTPTransport.java:1054)
    at com.sun.mail.smtp.SMTPTransport.sendMessage(SMTPTransport.java:634)
    at org.jbpm.pvm.internal.email.impl.MailSessionImpl.send(MailSessionImpl.java:51)
    ... 16 more
--------------------------------------------------------------

Reply to this message by going to Community
[http://community.jboss.org/message/634225#634225]

Start a new discussion in jBPM at Community
[http://community.jboss.org/choose-container!input.jspa?contentType=1&containerType=14&container=2034]

-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.jboss.org/pipermail/jboss-user/attachments/20111031/b5faeea1/attachment.html 


More information about the jboss-user mailing list