When I run:
echo "Subject: mysubject\n\nmytext" | sudo ssmtp firstname.lastname@example.org
I expect the line above to send an email to email@example.com with mysubject as Subject, and mytext as body of the email.
However, it sends an email with
mysubject\n\nmytext as Subject.
sudo ssmtp firstname.lastname@example.org <<<$"Subject: TESTING\n\nBody: of the email. TEST." has the same problem (that is, packages the whole text as Subject.)
What's wrong? The lines above seem to work for others.