GIT send-mail failing to send mail

1.8k Views Asked by At

I am trying send patch to linux-mailing list using git send-email but it is failing with following error

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.

following are my smtp setting

[sendemail]
    smtpEncryption=tls
    smtpServer=smtp.gmail.com
    [email protected]
    smtpServerPort = 587

Am I missing anything? Please Help!! Thanks

2

There are 2 best solutions below

0
On

Did you tried to add --smtp-ssl-cert-path ''? This disables ssl certification.

2
On

You have missed the password configuration

git config --global sendemail.smtppass <password>

Since you did not supply any password you cannot send the mail.