User Tools

Site Tools


eric:computer:bash:commands:command.line.mail.from.text.file

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 
eric/computer/bash/commands/command.line.mail.from.text.file.txt · Last modified: by admin

Donate Powered by PHP Valid HTML5 Valid CSS Driven by DokuWiki