Skip to content

Commit

Permalink
Merge branch 'jk/send-email-ssl-errors'
Browse files Browse the repository at this point in the history
Improve error reporting when SMTP TLS fails.

* jk/send-email-ssl-errors:
  send-email: enable SSL level 1 debug output
  • Loading branch information
Junio C Hamano committed Dec 21, 2015
2 parents d78cba4 + 9d60524 commit 7aaff08
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions git-send-email.perl
Original file line number Diff line number Diff line change
Expand Up @@ -1332,6 +1332,13 @@ sub send_message {
require Net::SMTP::SSL;
$smtp_domain ||= maildomain();
require IO::Socket::SSL;

# Suppress "variable accessed once" warning.
{
no warnings 'once';
$IO::Socket::SSL::DEBUG = 1;
}

# Net::SMTP::SSL->new() does not forward any SSL options
IO::Socket::SSL::set_client_defaults(
ssl_verify_params());
Expand Down

0 comments on commit 7aaff08

Please sign in to comment.