Mail from command line with input from a txt file.
mail -s 'Subject-Here' you@domain.tld < input.file
Mail Attacment From Command Line.
uuencode /tmp/list.tar.gz | mail -s "Subject-Here" you@domain.tld