summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: 6891281)
raw | patch | inline | side by side (parent: 6891281)
author | Johannes Schindelin <Johannes.Schindelin@gmx.de> | |
Wed, 31 May 2006 22:55:47 +0000 (00:55 +0200) | ||
committer | Junio C Hamano <junkio@cox.net> | |
Wed, 31 May 2006 23:17:15 +0000 (16:17 -0700) |
This was proposed by Eric Wong and fixes the test. (Of course, git-send-email
does not work, if there is no Net::SMTP here, but it will say what is wrong
when you actually try to use send-email.)
Signed-off-by: Johannes Schindelin <Johannes.Schindelin@gmx.de>
Signed-off-by: Junio C Hamano <junkio@cox.net>
does not work, if there is no Net::SMTP here, but it will say what is wrong
when you actually try to use send-email.)
Signed-off-by: Johannes Schindelin <Johannes.Schindelin@gmx.de>
Signed-off-by: Junio C Hamano <junkio@cox.net>
git-send-email.perl | patch | blob | history |
diff --git a/git-send-email.perl b/git-send-email.perl
index 0e368fff0cd6158108012b53eeb88496cc0a0632..ed1d89b3f73564715d0fe4061e87f63fea7e7be2 100755 (executable)
--- a/git-send-email.perl
+++ b/git-send-email.perl
use Term::ReadLine;
use Getopt::Long;
use Data::Dumper;
-use Net::SMTP;
# most mail servers generate the Date: header, but not all...
$ENV{LC_ALL} = 'C';
print $sm "$header\n$message";
close $sm or die $?;
} else {
+ require Net::SMTP;
$smtp ||= Net::SMTP->new( $smtp_server );
$smtp->mail( $from ) or die $smtp->message;
$smtp->to( @recipients ) or die $smtp->message;