1.配置文件 的写法 我用的是QQ邮箱
<!--邮件服务器配置 -->
<property name="mailServerHost" value="smtp.qq.com" />
<property name="mailServerPort" value="465"/>
<property name="mailServerDefaultFrom" value="xxx@qq.com" />
<property name="mailServerUsername" value="xxx@qq.com" />
<property name="mailServerPassword" value="ppp" />
<property name="mailServerUseSSL" value="true" />
2.BPMN文件的定义
<serviceTask activiti:type="mail" completionQuantity="1" id="_3" implementation="##WebService" isForCompensation="false" name="邮件服务活动" startQuantity="1">
<extensionElements>
<activiti:field name="to" stringValue="1075962011@qq.com"/>
<activiti:field expression="邮件标题" name="subject"/>
<activiti:field name="html">
<activiti:expression><![CDATA[
<html>
<body>
邮件内容
</body>
</html>
]]></activiti:expression>
</activiti:field>
</extensionElements>
<incoming>_5</incoming>
<outgoing>_6</outgoing>
</serviceTask>
英文详细介绍:http://www.javabeat.net/adding-more-logic-with-the-email-task-in-activiti/