Back
I am working on my server running a Linux shell. I wanted to mail a simple file to my recipient. How can I do this, I prefer to use the mail command?
I got a solution, using mutt instead:
$ echo | mutt -a syslogs.tar.gz [email protected]
Example using uuencode:
uuencode surfing.jpeg surfing.jpeg | mail [email protected]and reference article:http://www.shelldorado.com/articles/mailattachments.html
uuencode surfing.jpeg surfing.jpeg | mail [email protected]
and reference article:
http://www.shelldorado.com/articles/mailattachments.html
Note:you may apt install sharutils to have the uuencode command
Want to be a Linux expert? Come and join this Linux course
Do check out the video
31k questions
32.8k answers
501 comments
693 users