You need a basic email. Here's what that might look like:
Subject: Here is the Subject
Date: Tue, 15 Jun 2021 04:21:06 -0600
Message-ID: <12345@local.machine.example>
To: bransoj@hotmail.com
From: jbranso@dismail.de
Subject: Here is the Subject
Hello my dear friend,
How are you this fine day?
Thanks,
Joshua
cat ./examples/basic-email.txt
To: bransoj@hotmail.com From: jbranso@dismail.de Subject: Here is the Subject
Hello my dear friend,
How are you this fine day?
Thanks,
Joshua
This is NOT how you do it:
cat ./examples/basic-email.txt | msmtp 2>&1
Here is how you might use it in reality:
cat ./examples/basic-email.txt | msmtp -- 'bransoj@hotmail.com'
To: bransoj@hotmail.com From: jbranso@dismail.de Subject: Here is the Subject
Hello my dear friend,
How are you this fine day?
Thanks,
Joshua