Reputation: 139
so here's the whole text i'm sending:
and here's the email i'm receiving:
basically i just cat the file and echo then pipe it to ssmtp like this:
result=`cat file.out`
echo "$result" | ssmtp $emailaddr
Upvotes: -1
Views: 158
Reputation: 141010
ssmtp protocol defines the lines in format something: something
to be the header lines, like From: [email protected]
defines where from the email is. So if you want to specify the body only, add a leading empty line as the separator between the header and body of the message and hopefully ssmtp
should pick it up.
Upvotes: 2