Issue
Does anyone know how to change the from user when sending email using the mail command? I have looked through the man page and can not see how to do this.
We are running Redhat Linux 5.
Solution
http://www.mindspill.org/962 seems to have a solution.
Essentially:
echo "This is the main body of the mail" | mail -s "Subject of the Email" [email protected] -- -f [email protected]
Answered By - Paolo Bergantino Answer Checked By - Dawn Plyler (WPSolving Volunteer)