How to send myself mail via bash script? sendmail: executable not found (adjust *mta* variable); Currently no active mailbox

no, in my case, i already had the symbolic link of the /usr/sbin:

$ stat /usr/sbin /usr/sbin/sendmail|grep -E "File|Size"
  File: /usr/sbin -> bin
  Size: 3         	Blocks: 0          IO Block: 4096   symbolic link
  File: /usr/sbin/sendmail
  Size: 30624     	Blocks: 64         IO Block: 4096   regular file