gerrit 郵箱配置 及 驗證問題

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 控制檯裏複製跳轉鏈接
發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.
相關文章