Changing the from field when sending email

This is simple, but I always forget how to do it when I need it and it’s hard to find on google for some reason.

echo "hi" | mail -s "My Subject" [email protected] -- -f [email protected]
 
comments powered by Disqus