I couldn’t figure out how to send an email with both the subject and from set from the command line.
mail -s "my subject" email@example.com
worked with mail but would only set the subject.
sendmail -f "firstname.lastname@example.org" email@example.com
worked with sendmail but would only set the “from”. With a little help from Google I put this together: