Teknogeek ®

IT – Stuff

E-Mail from CMD —

MAIL:

E-Mail from command line using Echo and Mail:

email-command-line-echo

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


Comments are closed.