Using git 2.5.
Is there a clever, or official, way to verify that git send-email is able to connect to, and authenticate with, my smtp server? I've configured git, but I don't seem to be able to successfully use git send-email.
When I execute git send-email --to=mytest@example.com
I either see:
[Net::SMTP] Connection closed at /usr/libexec/git-core/git-send-email line 1348.
Or, when using tls in my config, I see:
Died at /usr/libexec/git-core/git-send-email line 1348.
My ~/.gitconfig seems correct:
[user]
name = John Jacob Jingleheimer Schmidt
email = jjjs@example.com
[sendemail]
smtpserver = mail.example.com
smtpuser = *****
smtpserverport = **
confirm = auto
smtpauth = PLAIN
smtpencryption = tls
This is a pain in the arse to troubleshoot. Is there some kind of git send-email --verify
command that can sanely tell me that my config is sound?
Use the --smtp-debug=1
option. This allows seeing the smtp communication output.