This is a pretty simple thing to do, once you’ve figured it out. You attach files using the following syntax:

uuencode filename1 filename2|mail user@domain.name

This will uuencode the file names, then pipe the output to the mail command, and mail to the user.

6 comments
  1. ummm. i hate to burst your bubble but..

    nobody in this day/age should be using uuencode for anything.

    uuencoded attachments will be destroyed going through a large majority of email systems, especially when the mta involves ASCIIEBCDIC gateways, these will sever the 8th bit control codes.

    Theres a good explanation of the problems here:

    http://www.imc.org/ietf-822/old-archive1/msg00290.html

    And seriously. just use mimencode with base64, its understood by nearly every mail client and won’t get clipped by EBCDIC conversion.

  2. ummm. i hate to burst your bubble but..

    nobody in this day/age should be using uuencode for anything.

    uuencoded attachments will be destroyed going through a large majority of email systems, especially when the mta involves ASCIIEBCDIC gateways, these will sever the 8th bit control codes.

    Theres a good explanation of the problems here:

    http://www.imc.org/ietf-822/old-archive1/msg00290.html

    And seriously. just use mimencode with base64, its understood by nearly every mail client and won’t get clipped by EBCDIC conversion.

Comments are closed.

You May Also Like

Tweaking TCP for Fast (100mbps+) Connections and Transfers on Linux

We recently did some speed testing on a few of the servers on our network, and we were not receiving the speeds expected considering they were sitting on a physical 100mbps ethernet port. The servers were indeed on physical 100mbps connection, however wget (TCP/IP, HTTP Port 80) download tests showed only a max of about 1.5MB/sec (note the 8bit/byte conversion, so this translates to about 12mbits).

Simple Redirect Subdomain to a Directory

If you are running Apache for your web server, and mod_rewrite is…

Postfix as a proxy to Exchange server

More and more people seem to be using an open source mail…

Greasemonkey + Duggmirror Script = Awesome

Don’t you hate it when you try to visit a digg story…