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@provider.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 user@pc1.localhost. 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 name@replyaddress.com -s “Your subject” user@provider.com