Posted By: Anonymous
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.
Go into Terminal and type
man mail for help.
You will need to set
mail -s "hello" "[email protected]" <<EOF hello world EOF
This will send an email to
[email protected] with the subject
hello and the message