簡體   English   中英

GIT發送郵件無法發送郵件

[英]GIT send-mail failing to send mail

我正在嘗試使用git send-email將補丁發送到linux-mailing列表,但它失敗並出現以下錯誤

Unable to initialize SMTP properly. 
Check config and use --smtp-debug. 

VALUES: server=smtp.gmail.com 
        encryption=tls 
        maildomain=xyz.domain.name at /usr/libexec/git-core/git-send-email line 1040.

以下是我的smtp設置

[sendemail]
    smtpEncryption=tls
    smtpServer=smtp.gmail.com
    smtpUser=xyz@gmail.com
    smtpServerPort = 587

我錯過了什么嗎? 請幫忙!! 謝謝

您錯過了密碼配置

git config --global sendemail.smtppass <password>

由於您沒有提供任何密碼,因此無法發送郵件。

您是否嘗試添加--smtp-ssl-cert-path '' 這會禁用ssl認證。

暫無
暫無

聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.

 
粵ICP備18138465號  © 2020-2024 STACKOOM.COM