Ever needed to send a mail from the command line.
It’s pretty simple (provided you already have a mail transfer agent running such as postfix or sendmail).
echo “Type email content here” | mail -s “Your subject” -a attachement-filename.png email@example.com
Let’s say your account name on your PC is ‘user’ and machine name is ‘pc1’. The recipient will find the mail originating from something like firstname.lastname@example.org. Mails replied to the latter won’t be receivable of course. You can therefore specify a reply-to address with the option -r.
echo “Type email content here” | mail -r email@example.com -s “Your subject” firstname.lastname@example.org