Mutt.
Create a muttrc with this line:
my_hdr From: someone at somewhere.com
Then call mutt:
mutt -F muttrc recipient at host.com
Your recipient should then get a mail from someone at somewhere.com.
Greg
On Mon, Sep 04, 2006 at 04:40:44PM +0100, Patrick Tuite wrote:
> Hi
>> I'm using the BSD mail application that's in a RHEL4 AS distribution to mail
> me log extracts, as below:
>> Mail -s "$subject" "$adminEmail" < $mailLog
>> I get these mails as coming from root. I'd like to be able to modify the From:
> field so it says what system it is being mailed from. i.e. From:
> <system.ucd.ie>.
> Does anyone know how I can do this with 'Mail', or what mail application I can
> use instead?
>> Cheers
> --
> Patrick Tuite
Maintained by the ILUG website team. The aim of Linux.ie is to
support and help commercial and private users of Linux in Ireland. You can
display ILUG news in your own webpages, read backend
information to find out how. Networking services kindly provided by HEAnet, server kindly donated by
Dell. Linux is a trademark of Linus Torvalds,
used with permission. No penguins were harmed in the production or maintenance
of this highly praised website. Looking for the
Indian Linux Users' Group? Try here. If you've read all this and aren't a lawyer: you should be!