Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 06 Apr 2007 19:17:04 -0500
From:      Kevin Kinsey <kdk@daleco.biz>
To:        Olivier Regnier <oregnier@steelbox.org>
Cc:        freebsd-questions@freebsd.org
Subject:   Re: send email with mail command
Message-ID:  <4616E300.60701@daleco.biz>
In-Reply-To: <4616D383.1040508@steelbox.org>
References:  <4616D383.1040508@steelbox.org>

next in thread | previous in thread | raw e-mail | index | archive | help
Olivier Regnier wrote:
> Hello,
> 
> I tested the mail command in console and my question is, it is possible 
> to indicate the MAIL FROM: me@domain.net ?
> 
> Thank you :)

Not sure about mail(1); manpage says environment variable REPLYTO
is honored; you might try to modify the headers to add the "-f me@mine.com"
switch.

That said, I have EMAIL defined here because mutt's manpage says it can
be used for exactly what you are asking about, and plain mail(1) seems
to honor that in a local test.  You might give it a try; either define
it in your shell resource scripts or your ~/.mailrc.

BTW, if you're wanting to use mail from console, I'd recommend mutt
over mail(1) any day of the week, unless you have some mitigating
circumstance....

HTH,

Kevin Kinsey
-- 
One difference between a man and a machine
is that a machine is quiet when well oiled.



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?4616E300.60701>