mail command in linux
Posted on 2000-03-24
I want to send an attached file using the mail command.
I have tried
mail email@example.com -s 'File Attachement' < file.txt
This sends the file but not as an attachement, instead when you click on the mail, the file contents are displayed directly in the browser.
I have also tried
uuencode file.txt | mail -s 'File Attachement' firstname.lastname@example.org
This attaches a file, but I am unable to view it when I click on.
Would somebody know what I am doing wrong, or possibly suggest a solution to this problem