1 Answer
Assume if you have test.txt file in /home/user1/Documents and you can send it through mail command as follows,
# mail -s "File attached" -a /home/suer1/Documents/test.txt abc@gmail.com
A File had been attached.
EOF
Now check the mail with a file attached.
Your Answer