I'm on a server running a Linux shell. I need to mail a simple file to a recipient. How to do this, prefereably using only the mail command?
Example using uuencode:
uuencode surfing.jpeg surfing.jpeg | mail sylvia@home.com
and reference article:
http://www.shelldorado.com/articles/mailattachments.html
you may apt install sharutils
to have uuencode
command