Skip to content

Commit

Permalink
Merge branch 'jk/send-email-ssl-errors' into maint
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 Jan 4, 2016
2 parents 34872f0 + 9d60524 commit 06b5c93
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 @@ -1318,6 +1318,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 06b5c93

Please sign in to comment.