activiti郵件發送服務組件配置與使用

服務組件:

屬性:

接收人:定義收件箱,多個以逗號間隔

主題:郵件主題

內容:郵件正文內容

html:html格式的郵件正文內容,支持各種html標籤,和內容同時存在時此屬性生效。

springboot中對郵件服務的配置:

package com.workflow.config;


import org.flowable.engine.impl.cfg.multitenant.MultiSchemaMultiTenantProcessEngineConfiguration;
import org.flowable.spring.SpringProcessEngineConfiguration;
import org.flowable.spring.boot.EngineConfigurationConfigurer;
import org.springframework.context.annotation.Configuration;

/**
 * 流程引擎配置類
 *
 */
@Configuration
public class FlowableEngineConfig implements EngineConfigurationConfigurer<SpringProcessEngineConfiguration> {

    @Override
    public void configure(SpringProcessEngineConfiguration engineConfiguration) {
        engineConfiguration.setMailServerDefaultFrom("默認郵件發送者");
        engineConfiguration.setMailServerPassword("發送方郵箱密碼");
        engineConfiguration.setMailServerHost("郵件服務器host");
        engineConfiguration.setMailServerPort("郵件服務器port");
        engineConfiguration.setMailServerUsername("郵件列表中展示的發送方名稱");
    }
}

 

發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.
相關文章