In an email, from is set in the header. To set FROM in any email sent through the mail command, here is the syntax
echo 'Mail body' | \ mail -s 'this is the email subject' -a 'From: sender@example.com' receiver@example.com
Follow me in Twitter
Arseblog Anjhero Geshan Manandhar Prashant Shrestha Rabindra Gurung Jwalanta