[ILUG-BOM] Different sender name in messages send by mail command.

Amish Munshi lists@[EMAIL-PROTECTED]
Fri Dec 31 14:12:52 IST 2004

On Fri, Dec 31, 2004 at 01:01:59PM +0530, Bilal Ahmed Mazhar wrote:
> Hello All
> If log in as root (or run a root cron job) and send a content of file lets say xyz.txt by using following command
> cat xyz.txt | mail -s "subject" touser at gomainname.com
> then my message is delivered to destination as showing "root" is the sender. Is there anyone who can suggest me to add 
> another sender name without logging as that user?
cat xyz.txt | mail -s "subject" -r FROM at ADDRESS.TLD touser at gomainname.com

More information about the Linuxers mailing list