mail -s 'subject' -c 'cc-address' -b 'bcc-address' 'to-address'
Press CTRL+D you are finished writing the mail.
# mail the text that was piped to mail echo "mail text" | mail john@example.com -s "subject text" # mail the file content cat list.txt | mail john@example.com -s "sample subject"