It's also possible to set both the From name and from address using something like:
echo test | mail -s "test" [email protected] -- -F'Some Name<[email protected]>' -t
For some reason passing -F'Some Name'
and [email protected]
doesn't work, but passing in the -t
to sendmail works and is "easy".