Mail

From Montana Tech Computer Science Department
Jump to: navigation, search

Linux Mail

Text Only

user1@katie:/$ mail user2
Subject: Some subject here
Your message should go here. To send your message, finish the body with a single '.' on one line. 
.

Sending Attachments

user1@katie:/$ mail user2 -a fileToAttach.tgz user2
Subject: Some subject here
Your message should go here. As above, the message is sent when a single '.' is found on a new line.
.

Forwarding mail to another account

Create a file called '.forward' in your home directory. Enter the email you'd like your mail to foward to. For example:

user1@katie:/$ cat ~/.forward
user1@gmail.com