E-Mail from CMD —
MAIL:
E-Mail from command line using Echo and Mail:
echo "Testing E-Mail from command line" | mail -s "Test Echo CMD E-Mail" someone@domain.com
MUTT:
E-Mail with Attachment:
echo "This is the message body" | mutt -a "/path/to/file.to.attach"
-s "subject of message" -- recipient@domain.com
Categorised as: Linux Commands
Comments are disabled on this post