From: Ævar Arnfjörð Bjarmason Date: Sat, 04 Sep 2010 14:24:46 GMT Subject: Re: smtp server on windows Message-ID: In-Reply-To: <4C8251A0.1020809@obry.net> On Sat, Sep 4, 2010 at 14:03, Pascal Obry wrote: > This is using the default account as specified in my .msmtprc. I want to > use a specific account (say gmail) for this repository, I tried: > > [sendemail] >        smtpserver = /usr/sbin/msmtp --account=gmail > > but this fails as smtpserver is expecting a simple executable. Is there > a way to pass some parameters to an smtpserver specified on a Git > configuration? No, but you could modify this bit in git-send-email.perl: } elsif ($smtp_server =~ m#^/#) { my $pid = open my $sm, '|-'; defined $pid or die $!; Or, to make it work right now: just make a wrapper script.