mail:
host: smtp.163.com
username: [email protected]
password: xxxx
port: 465
protocol: smtp // 重點
properties:
mail:
debug: true
smtp:
auth: true
timeout: 20000
connectiontimeout: 20000
writetimeout: 20000
socketFactory:
fallback: false
starttls:
enable: true
ssl:
enable: true
default-encoding: utf-8
test-connection: false