To send mail using the Mail program use the following command:
Mail nobody@nowhere.com Subject: enter your subject hereEnter your message here. To send the message enter a '.' on a line by itself.
In order to mail a text file (i.e. not a program, binary, dvi, .o, or PostScript file) to someone use the following command:
Mail -s "your subject here" nobody@nowhere.com < your filenamewhere nobody@nowhere.com is the email address of the person to whom you are sending the mail. To send a binary (non-text) file you will need to use uuencode. (man uuencode for more information) and send the uuencoded file. You may need to break up the uunecoded file into smaller chunks. Another alternative is to use the ftp program.