Johannes Schindelin <Johannes.Schindelin@xxxxxx> writes: > is it unexpected that there are setups which come without Net::SMTP? > > -- snip -- > * expecting success: git format-patch -n HEAD^1 > git send-email -from="Example <nobody@xxxxxxxxxxx>" > --to=nobody@xxxxxxxxxxx --smtp-server="$(pwd)/fake.sendmail" ./0001*txt > 0001-Second.txt > Can't locate Net/SMTP.pm in @INC (@INC contains: Hmm. Something like this? -- >8 -- diff --git a/git-send-email.perl b/git-send-email.perl index 0e368ff..f7af8eb 100755 --- a/git-send-email.perl +++ b/git-send-email.perl @@ -21,7 +21,6 @@ use warnings; 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'; @@ -394,6 +393,7 @@ X-Mailer: git-send-email $gitversion print $sm "$header\n$message"; close $sm or die $?; } else { + use Net::SMTP; $smtp ||= Net::SMTP->new( $smtp_server ); $smtp->mail( $from ) or die $smtp->message; $smtp->to( @recipients ) or die $smtp->message; - : send the line "unsubscribe git" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html