From: Eric Wong Date: Fri, 28 Apr 2006 00:27:44 GMT Subject: Re: [PATCH] send-email: Change from Mail::Sendmail to Net::SMTP Message-ID: <20060428002744.GB9146@hand.yhbt.net> In-Reply-To: <46a038f90604261324w76f272edp93941d7e8645be8@mail.gmail.com> Martin Langhoff wrote: > On 4/27/06, Junio C Hamano wrote: > > > system that we don't need an smtp daemon. Net::SMTP doesn't know how > > > to use /usr/bin/sendmail > > > > Wouldn't --smtp-server=that.smtp.server work for you? Ah, that > > would not work if your use is to send a local mail. Hmph... > > Well, the machine knows that the smtp server is (I mean, files in /etc > have the right values in them), but I don't think often about it. Only > when I am installing OSs or MTAs... > > I know... I'm a whiner! ;-) I'll probably do something that does an > eval and tries Mail::Sendmail and post it. You should be able to just open a pipe to: /usr/sbin/sendmail @recipients and just write headers\nbody to that pipe. Perhaps allow and detect --smtp-server=/path/to/sendmail ? -- Eric Wong