It's pretty simple but may save you a couple of minutes reading the docs:

echo -e "Subject:Test \n\nSomething" | sendmail -t "[email protected],[email protected]"

The -e enables escape sequences on the echo.

The -t instructs sendmail to read the header for To:, Cc:, Bcc: and Subject: lines.