Sending binary files through the mail

You can mail binary files between Unix systems that have the tarmail or uuencode utilities installed. Use the which command to find out if it is available on your system. Information about using uuencode is here.

The tarmail command converts the binary file into a text file and then compresses it to reduce its size. It then mails the file to the address given. For example:

   tarmail joe@@glasgow.psy "prog i promised u" a.out

This sends the file a.out to the person who's mail address is joe@@glasgow The quoted text is used as information for the Subject: field.

tarmail can be used to send several files in the same mail message. For example:

   tarmail bill@@cis "that prog" prog.c a.out

This "tars up" the files prog,c and a.out into the single mail message.

Once the mail message containing the file reaches its destination, the person can save the mail message to a file and then decode the file using the untarmail command. For example:

   untarmail fromjohn

Top document