1.郵箱配置
a.163郵箱
[sendemail]
#smtpServer = localhost
enable = true
smtpServer = smtp.163.com
smtpServerPort = 465
smtpEncryption = SSL
sslVerify = true
smtpUser = **@163.com
smtpPass = 郵箱密碼
from = CodeReview<**@163.com>
b.qq郵箱
[sendemail]
#smtpServer = localhost
enable = true
smtpServer = smtp.qq.com
smtpServerPort = 465
smtpEncryption = SSL
sslVerify = true
smtpUser = **@qq.com
smtpPass = 郵箱密碼
from = CodeReview<**@qq.com>
2.qq郵箱點擊鏈接報錯
報錯內容
An error occurred
Error 422 (Unprocessable Entity): invalid token
Endpoint: /config/server/email.confirm
原因:qq郵箱有自己的安全連接檢測,當鼠標懸停鏈接時會觸發一個請求,這樣驗證鏈接就失效了
解決辦法:F12 控制檯裏複製跳轉鏈接