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" to@someone.com -- -f from@someone.com

Leave a Reply

You can use these tags: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>