Thursday, August 16, 2012

Sending attachments from a command line with uuencode

The arguments to uuencode are the file, and the name of the file as it appears in the attachment. I would usually use the same string so I don't have to remember the order.
uuencode file.jpg file.jpg | mail -s 'subject' keith@foosball.com

Followers