leandromac / git-osx-installer

Automatically exported from code.google.com/p/git-osx-installer
0 stars 0 forks source link

Git send-email requires Net/SMTP/SSL.pm #33

Closed GoogleCodeExporter closed 8 years ago

GoogleCodeExporter commented 8 years ago
What steps will reproduce the problem?
1. Configure 'git send-email' to use SMTP over SSL:

$ git config --global sendemail.smtpserver smtp.gmail.com
$ git config --global sendemail.smtpserverport 587
$ git config --global sendemail.smtpuser user@gmail.com
$ git config --global sendemail.smtpencryption tls

2. After making some commits, attempt to email a patch:

$ git send-email origin 

What is the expected output? What do you see instead?

After prompting for parameters and answering yes to the "Send this email?" 
prompt, the following error is 
displayed instead of sending an email:

Can't locate Net/SMTP/SSL.pm in @INC (@INC contains: 
/usr/local/git/lib/perl5/site_perl/5.8.8/darwin-
thread-multi-2level /usr/local/git/lib/perl5/site_perl/5.8.8 
/usr/local/git/lib/perl5/site_perl 
/Library/Perl/Updates/5.8.8 
/System/Library/Perl/5.8.8/darwin-thread-multi-2level 
/System/Library/Perl/5.8.8 /Library/Perl/5.8.8/darwin-thread-multi-2level 
/Library/Perl/5.8.8 /Library/Perl 
/Network/Library/Perl/5.8.8/darwin-thread-multi-2level 
/Network/Library/Perl/5.8.8 /Network/Library/Perl 
/System/Library/Perl/Extras/5.8.8/darwin-thread-multi-2level 
/System/Library/Perl/Extras/5.8.8 
/Library/Perl/5.8.6 /Library/Perl/5.8.1 .) at 
/usr/local/git/libexec/git-core/git-send-email line 903, <FIN> 
line 4.

What version of the product are you using? On what operating system?

$ git --version
git version 1.6.3.1

$ system_profiler SPSoftwareDataType
Software:

    System Software Overview:

      System Version: Mac OS X 10.5.7 (9J61)
      Kernel Version: Darwin 9.7.0
      Boot Volume: MacintoshHD
      Boot Mode: Normal
      Time since boot: 6 days 4:55

Original issue reported on code.google.com by tre...@tjohns.net on 21 Jul 2009 at 10:04

GoogleCodeExporter commented 8 years ago
You know, I've been using msmtp to send mail with git.  I'm not sure if it 
should be the git installer's 
responsibility to distribute the perl SSL packages.

Original comment by timchar...@gmail.com on 17 Sep 2009 at 7:30

GoogleCodeExporter commented 8 years ago
Hmm, this seems to be the same problem as: 
http://code.google.com/p/msysgit/issues/detail?id=310

As such, and since evidently the accepted solution in both cases is to use 
msmtp, the wiki page linked there might be helpful (despite a few Windows 
assumptions): 
https://git.wiki.kernel.org/articles/u/s/i/MSysGit~UsingSendEmail_d09b.html

If git-send-email(1) would mention msmtp, that would probably help users of 
both systems...

Original comment by naesten on 27 Nov 2011 at 7:24