Send an email from the command line with msmtp
$ cat email.txt | msmtp -a default email@address.xyz
-a is an abbreviation for --account.
default is the name of the account you want to send the email from, in .msmtprc file.
personal computing command-line interface (cli) gnu linux trisquel shell literacy office applications wiki msmtp