Ubuntu Mail From Command Line

Mail from command line with input from a txt file.

mail -s 'Subject-Here' [email protected] < input.file

Mail Attacment From Command Line.

uuencode /tmp/list.tar.gz | mail -s "Subject-Here" [email protected]