Attach files to email via command line

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

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

Dave Drager

Dave Drager


Sign in or become a free systemBash member to read and leave comments.
Just enter your email below to get an easy log in link.