Skip to content

Commit b210262

Browse files
committed
Merge branch 'ag/send-email-sasl-with-host-port'
"git send-email" learns to pass hostname/port to Authen::SASL module. * ag/send-email-sasl-with-host-port: send-email: pass smtp hostname and port to Authen::SASL
2 parents 0724f72 + b10fb23 commit b210262

1 file changed

Lines changed: 2 additions & 0 deletions

File tree

git-send-email.perl

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1474,6 +1474,8 @@ sub smtp_auth_maybe {
14741474
user => $cred->{'username'},
14751475
pass => $cred->{'password'},
14761476
authname => $cred->{'username'},
1477+
host => $smtp_server,
1478+
(defined $smtp_server_port ? (port => $smtp_server_port) : ()),
14771479
}
14781480
);
14791481
$result = $smtp->auth($sasl);

0 commit comments

Comments
 (0)