Changing the “From” address in emails generated by scripts

 

Here is a convenient way to set the From address in emails
generated automatically (for example report jobs run from cron):
 
    echo be good | mutt -s 'message from Santa'  -e 'my_hdr From:
Santa.Claus@NorthPole.org'
 
mutt's my favorite command-line emailer.   It is featureful and highly customizable.
 
www.mutt.org