I know there are ways to send email from terminal in Linux/MacOS, but I can't seem to find proper documentation on how to do that.
Basically I need it for my bash script that notifies me every time there is a change in a file.
echo "this is the body" | mail -s "this is the subject" "to@address"