SpringBoot 2.1.1.RELEASE 集成Email
阿新 • • 發佈:2018-12-14
依賴 www tid pid required utf-8 artifact true fault SpringBoot 2.1.1.RELEASE 集成Email
依賴配置:
<!-- mail start -->
<dependency>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-starter-mail</artifactId>
</dependency>
配置文件:
### mail郵件配置 spring.mail.host=smtp.xxx.com.cn [email protected] spring.mail.password=xxxx spring.mail.default-encoding=UTF-8 spring.mail.properties.mail.smtp.auth=true spring.mail.properties.mail.smtp.starttls.enable=true spring.mail.properties.mail.smtp.starttls.required=true
舉例:
http://www.qchcloud.cn/system/article/show/71
SpringBoot 2.1.1.RELEASE 集成Email