Martin Langhoff [off-list ref] wrote:
On 4/27/06, Junio C Hamano [off-list ref] wrote:
quoted
quoted
system that we don't need an smtp daemon. Net::SMTP doesn't know how
to use /usr/bin/sendmail
quoted
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