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@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?
Regards, Bilal Ahmed
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@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@ADDRESS.TLD touser@gomainname.com