【问题标题】:Unable to send email using git send-email无法使用 git send-email 发送电子邮件
【发布时间】:2019-09-24 08:22:24
【问题描述】:

我无法使用 git send-email 发送补丁。 这是我的 .gitconfig 文件

[user]
    email = my-email
    name = my-name
[sendemail]
    smtpencryption = tls
    smtpserver = smtp.gmail.com
    smtpuser = my-email
    smtpserverport = 587
    smtppassword = mypassword

这里的 mypassword 是我的 google 帐户的应用密码,而不是真实密码。 配置有什么问题?

这就是我尝试使用命令的方式:

git send-email 0001-patch-name.patch

这是错误:

无法正确初始化 SMTP。检查配置并使用 --smtp-debug。值:server=smtp.gmail.com encryption=tls hello=madhuparna-HP-Notebook port=587 at /usr/lib/git-core/git-send-email line 1506。

【问题讨论】:

标签: git smtp gmail


【解决方案1】:

我终于明白了,问题不在于配置,而在于防火墙问题。

【讨论】:

    猜你喜欢
    • 2019-10-18
    • 1970-01-01
    • 1970-01-01
    • 2010-12-19
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 2021-09-15
    • 1970-01-01
    相关资源
    最近更新 更多