Mail Contents Of File

October 13, 2008

A tip:

If you have a file ‘names.txt’ and want to mail the contents to yourself.

$ mail -s “My subject here” myself@foo.com < names.txt

Tags: linux