Warning: file_get_contents(/data/phpspider/zhask/data//catemap/2/python/296.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Linux GIT send mail无法发送邮件_Linux_Git_Email_Mailing List - Fatal编程技术网

Linux GIT send mail无法发送邮件

Linux GIT send mail无法发送邮件,linux,git,email,mailing-list,Linux,Git,Email,Mailing List,我正在尝试使用git send email将修补程序发送到linux邮件列表,但由于以下错误而失败 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-em

我正在尝试使用git send email将修补程序发送到linux邮件列表,但由于以下错误而失败

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>
git config--global sendmail.smtppass

由于您没有提供任何密码,因此无法发送邮件。

您是否尝试添加
--smtp ssl证书路径“”
?这将禁用ssl认证。

那么
--smtp调试
会说什么?我不知道如何使用它:(
git send email--smtp调试=1
我尝试了这两种方法--smtp调试1“&--smtp调试=1”但我没有得到任何额外的日志。请按照@user3159253的建议尝试使用
--smtp debug=1
。您尝试的两件事与此模式不匹配:一件是缺少
=
,另一件是下划线(
),而不是连字符(
-
)。不,我也尝试过,但无法发送电子邮件。此外,如果您可以看到错误消息,则与密码配置无关。根据手册页,密码配置是可选的。如果您未配置密码,则在发送邮件时会提示输入密码。我不完全确定2016年的设置,但这对于今天的git发送电子邮件是错误的(根据@user3156262,这一次也是错误的)。你不应该在shell中提供密码,因为它们可以通过你的历史文件轻松读取,这是一个安全问题。如果你不提供密码,git send email会要求你提供密码。