使用flowable发送邮件服务,特别方便。使用方法如下:
1、mailTask属性配置:
1、flowable 配置:
flowable:
activity-font-name: \u5B8B\u4F53
label-font-name: \u5B8B\u4F53
annotation-font-name: \u5B8B\u4F53
check-process-definitions: false
mail:
server:
host: smtp.exmail.qq.com
port: 587
default-from: 改成发件人邮箱地址
username: 发件人邮箱地址,如果和上面属性设置不一致会出现501 mail from address must be same as authorization user
password: 邮箱授权码,不是邮箱密码;设置方法可参考各个邮箱设置,我用的是腾讯企业邮箱,设置方法如下:
就这么简单