Back

Explore Courses Blog Tutorials Interview Questions
0 votes
1 view
in Linux by (18.4k points)
edited by

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]

1 Answer

0 votes
by (36.8k points)

Example using uuencode:

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

Related questions

0 votes
1 answer
asked Apr 11, 2021 in Linux by dev_sk2311 (44.2k points)
0 votes
1 answer
0 votes
1 answer
0 votes
1 answer

Browse Categories

...