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@163.com mail.from=ylyy-1985(a)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@6cef4
org.jbpm.api.JbpmException: could not send email: javax.mail.internet.MimeMessage@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@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&...]