Title: command.line.mail.from.text.file
Created: 2017-07-09 02:44:12

How to send the content of a text file as the body of an email.


cat (file name) | mail -s "(subject in quotes)" -c (CC: email address) (TO: email address)

Example

 cat easyrsync.sh | mail -s "listing for easyrsync.sh" -c eric_swanson@gial.edu julie_swanson@wycliffe.org