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.
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.
If all you need is a subject line (as in an alert message) simply do:
in the terminal on your mac os or linux os type this code
for an example try this
If you want to attach a file on Linux
Go into Terminal and type
man mail
for help.You will need to set
SMTP
up:http://hints.macworld.com/article.php?story=20081217161612647
See also:
http://www.mactricksandtips.com/2008/09/send-mail-over-your-network.html
Eg:
This will send an email to
example@example.com
with the subjecthello
and the message