You can get the "Thomas<[email protected]>" when you use sendmail directly. That is not so complicated, you just need to create the header
From: [email protected]
To: Thomas <[email protected]>
Subject: The content of my home directory
<output from ls>
There has to be an empty line between the header and the content. You can achieve this with:
(echo -e 'From: [email protected]\nTo: Thomas <[email protected]>Subject: The content of my home directory\n\n' ls -l $HOME | sendmail -t
However, please note, that e.g. in Thunderbird, if the recipient has a name for [email protected] in the addressbook, then that name will be displayed, instead of Thomas