mirror of
https://github.com/dromara/RuoYi-Vue-Plus.git
synced 2025-09-24 07:19:46 +08:00
[add]:
1. (common) pom.xml - 增加邮件依赖 ; 2. (admin) application-dev.yml - 增加邮件配置 ; 3. (framework) MailProperties, MailConfig - 增加邮件属性配置 ; 4. (common) MailUtils - 重写 Hutool MailUtil方法 ; 5. (demo) MailController - 邮件发送测试方法 ;
This commit is contained in:
@ -137,6 +137,34 @@ spring:
|
||||
# 是否开启ssl
|
||||
ssl: false
|
||||
|
||||
# 邮件
|
||||
mail:
|
||||
enabled: false
|
||||
# 邮件服务地址 (enabled = true 时打开该配置)
|
||||
# host: smtp.qq.com
|
||||
# 用户名
|
||||
username: xxx@qq.com
|
||||
# 授权码 (设置 - 账户 - POP3/SMTP服务)
|
||||
password: xxx
|
||||
# QQ邮箱加密端口,不同邮箱的端口不一样
|
||||
port: 465
|
||||
properties:
|
||||
mail:
|
||||
smtp:
|
||||
socketFactory:
|
||||
class: javax.net.ssl.SSLSocketFactory
|
||||
ssl:
|
||||
trust: smtp.qq.com
|
||||
# 是否需要用户认证
|
||||
auth: true
|
||||
starttls:
|
||||
# 启用TLS加密
|
||||
enable: true
|
||||
required: true
|
||||
# 传输协议 starttls.enable = true 时为 smtps
|
||||
protocol: smtps
|
||||
debug: true
|
||||
|
||||
redisson:
|
||||
# 线程池数量
|
||||
threads: 4
|
||||
|
Reference in New Issue
Block a user