Email 101 in Unix

This sends an email from a file:

mail -s “here is the subject” email@rigler.org,otheremail@rigler.org < /etc/motd This sends an email from a pipe: ls -l | mail -s "here is the subject" email@rigler.org,otheremail@rigler.org When you first install the system, if you have /etc/resolv.conf configured, email will figure out where to go. If you want to forward email sent to your unix account to a different account, just add the email address that you want to use to a file called ~/.forward

Leave a Reply

Your email address will not be published. Required fields are marked *