Browse Source

Merge branch 'dk/send-email-avoid-net-smtp-ssl-when-able'

A hotfix to a topic in 'master'.

* dk/send-email-avoid-net-smtp-ssl-when-able:
  send-email: Net::SMTP::starttls was introduced in v2.34
maint
Junio C Hamano 8 years ago
parent
commit
b85b88141e
  1. 2
      git-send-email.perl

2
git-send-email.perl

@ -1355,7 +1355,7 @@ EOF @@ -1355,7 +1355,7 @@ EOF
}

require Net::SMTP;
my $use_net_smtp_ssl = version->parse($Net::SMTP::VERSION) < version->parse("1.28");
my $use_net_smtp_ssl = version->parse($Net::SMTP::VERSION) < version->parse("2.34");
$smtp_domain ||= maildomain();

if ($smtp_encryption eq 'ssl') {

Loading…
Cancel
Save