jbpm4.4 发送邮件

来源:互联网 发布:jdk 7u80 linux x64 编辑:程序博客网 时间:2024/06/06 04:56

测了两天终于成功发送出邮件了,坑爹呢!原来一直用QQ邮箱发送,发现发送不了,提示要用ssl协议进行发送,后来换成了126邮箱,发送成功了!具体配置如下:

jbpm定义文件

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

<process key="mail" name="mail" xmlns="http://jbpm.org/4.4/jpdl">
    <start g="0,0,80,40">
        <transition to="send birthday reminder note"/>
    </start>
    <mail name="send birthday reminder note" g="85,127,250,40" >
        <to addresses="865517964@qq.com"/>
        <subject>Reminder:  celebrates his birthday!</subject>
        <text>Do not forget: is the birthddfdsf </text>
        <transition to="end"/>
    </mail>
    <state name="end" g="91,284,80,40"/>
</process>

邮件配置文件


mail.smtp.host=smtp.126.com
mail.smtp.port=25
mail.from=*****@126.com
mail.smtp.auth=true
mail.debug=true
mail.username=***@126.com
mail.password=****

发布流程后发送邮件即可!

0 0