To test use:
echo "Something..." | mailx -v -A forcron -s "Cronjob completed on $(hostname)" email@example.com
To install:
apt install mailx
Edit this file:
/etc/mail.rc
or
/etc/nail.rc
If you need, you can check which file by running
strings /usr/bin/mailx | grep rc