Concatenating File and String for Sendmail

I want o add a variable in addition to a file which will be send with sendmail. I have problems to find the correct syntax for concatenating this variable called $MyVariable.

sendmail mai@domain.com </tmp/errormessage.txt [plus $MyVariable]

Thanks for your help!

Hi, high5

echo "$MyVariable" | cat /tmp/errormessage.txt - | sendmail mai@domain.com

Regards,
Alister

Some examples to use sendmail and HERE templates

sendmail -t -i <<EOF
To:  mai@domain.com
Subject: Here is some subject

$(cat /tmp/errormessage.txt)
$MyVariable

EOF