how to send email to a user using bash shell code example Example: bash send email from script $ cat /path/to/file | mail -s "your subject" [email protected]