Is it possible to email attachments from the command line?
If possible, I'd like something as simple as:
mail -a myfile.txt -t firstname.lastname@example.org -s "Here's my file"
Of all the mail user agents in the Ubuntu repository, it appears that mutt is the command-line MUA that is blessed with Long Term Support.
According to the manual, you can do something exactly like:
except it won't go anywhere since one also needs a Mail Transfer Agent. Popular ones are:
and the only ones that Canonical seems to support are postfix (thanks for the correction Steve) and exim4.
One could also say that xdg-email is also a proper Ubuntu MUA, but it is a bare-bones front end which only executes your preferred MUA on your behalf.
If you'd like advice on which MTA might be suitable for your use, perhaps open another question here.