I am having difficulties converting this bash script to a oneliner.
Code:
{
echo Subject: This is the logfile
cat /tmp/logfile
} | ssmtp my@email.com
I tried a few things, but every time either the subject or log file are not included in the the email.
How can I do this?