问题
I am trying to send a git patch for a upstream community review; But the receiver does not receive the message;
I have tried changing '--to
' to one of my private email-id, but even this is not being received at my private mailbox;
command:
git send-email --no-chain-reply-to --from "Ganapathi Bhat <xxx@gmail.com>" --to linux-wireless@vger.kernel.org my_patch.patch
output:
Unable to initialize SMTP properly. Check config and use --smtp-debug. VALUES: server=smtp.gmail.com encryption=tls hello=yyy.yyy.com port=587 at /usr/lib/git-core/git-send-email line 1506
command:
git config -l
output:
user.email=xxx@gmail.com
user.name=Ganapathi Bhat
sendemail.smtpencryption=tls
sendemail.smtpserver=smtp.gmail.com
sendemail.smtpuser=xxx@gmail.com
sendemail.smtpserverport=587
The patch should get delivered to the community for review process and it should appear in below list: https://patchwork.kernel.org/project/linux-wireless/list/
回答1:
Considering git send-email man page, test if adding an equal ('=
') changes anything:
git send-email --no-chain-reply-to --from="Ganapathi Bhat" --to=linux-wireless@vger.kernel.org my_patch.patch
^^^ ^^^
The next step is to check your sendemail config: git config -l
See Git Tips.
For example, with GMail:
git send-email
now supports TSL/SSL, so using gmail is as simple as setting the following configuration variables:
[sendemail]
smtpencryption = tls
smtpserver = smtp.gmail.com
smtpuser = yourname@gmail.com
smtpserverport = 587
The OP Ganapathi Bhat confirm a configuration issue in the comments:
git send-email fail to send message
I was using wrong "smtpserver";
I contacted the IT person, got the correct "smtpserver" to be used, which fixed the issue.
来源:https://stackoverflow.com/questions/56421262/git-send-email-fail-to-send-message