mailtextbody: command not found

Have You tried accessing the binary with the full path?

Maybe Your $PATH variable doesn't contain the default paths? echo $PATH should give something like:

[root@server ~]# echo $PATH
/usr/local/sbin:/usr/local/bin:/sbin:/bin:/usr/sbin:/usr/bin:/root/bin

If it's empty, You may set the PATH variable with this command

export PATH="/usr/local/sbin:/usr/local/bin:/sbin:/bin:/usr/sbin:/usr/bin:/root/bin"

On Debian possible default full paths are:

/usr/bin/mailtextbody - from package: mailtextbody

You may install the required package with command apt-get install {package}
Error in other languages:
mailtextbody: bevel nie gevind nie
mailtextbody: comandă negăsită
mailtextbody: comando não encontrado
mailtextbody: commande introuvable
mailtextbody: command not found
mailtextbody: käsku ei ole
mailtextbody: không tìm thấy lệnh
mailtextbody: komanda nerasta
mailtextbody: Kommando nicht gefunden.
mailtextbody: kommandot finns inte
mailtextbody: komut yok
mailtextbody: nie znaleziono polecenia
mailtextbody: níor aimsíodh an t-ordú
mailtextbody: no se encontró la orden
mailtextbody: no s'ha trobat l'ordre
mailtextbody: opdracht niet gevonden
mailtextbody: parancs nem található
mailtextbody: perintah tidak ditemukan
mailtextbody: príkaz nenájdený
mailtextbody: příkaz nenalezen
mailtextbody: команда не найдена
mailtextbody: командата не е открита
mailtextbody: 命令找不到
mailtextbody: コマンドが見つかりません