September 8, 2012

uuencode and mail

Needed to e-mail an attachement using only mail, after a little Googling I found the following which works great! The first .gz is the file location, the second .gz is what will show up in the body of the email allowing you to download it.

uuencode accesslogs.gz accesslogs.gz | mail -vs "Access Logs" youremail@blah.com
  • LinkedIn
  • Tumblr
  • Reddit
  • Google+
  • Pinterest
  • Pocket
Comments powered by Disqus