JBPM的邮件发送实例
用MDeamon作为本地的邮件服务器,发送邮件测试
mySendEmail.jpdl.xml
----- 关键步骤 ----
在MDeamon中需要设置RFC不检查,否则将出现如下错误
15:39:32,046 INF | [DefaultCommandService] exception while executing command org.jbpm.pvm.internal.cmd.StartProcessInstanceInLatestCmd@196bac4
org.jbpm.api.JbpmException: could not send email: javax.mail.internet.MimeMessage@15d8d75
at org.jbpm.pvm.internal.email.impl.MailSessionImpl.send(MailSessionImpl.java:60)
at org.jbpm.jpdl.internal.activity.MailActivity.perform(MailActivity.java:46)
Caused by: com.sun.mail.smtp.SMTPSendFailedException: 554 Message is not RFC compliant
导致邮件发送失败
MDeamon→菜单→设置(S)→默认域/服务器→服务器
checbox:拒绝不符合RFC的邮件 (不选择此功能)