[X-Unix] Re: how to send mail from commandline?
Timothy Luoma
lists at tntluoma.com
Wed Nov 9 19:36:12 PST 2005
On Nov 9, 2005, at 6:00 PM, Marley Graham wrote:
>
> On Nov 9, 2005, at 10:50 AM, TjL wrote:
>
>> Mail -s "Put Subject Here" name at example.com < FILE.txt
>>
>> will mail the contents of "FILE.txt" to "name at example.com" with
>> Subject
>> "Put Subject Here"
> Don't forget to end it with <CTRL>-D to actually send it.
>
Using my method you don't need to.
On Nov 9, 2005, at 5:41 PM, Lasse wrote:
> more <path_to_file.txt> | mail -s "Put another subject here"
> anothername at example.com
Useless Use of Cat (actually 'more' here, but same principle)
More information about the X-Unix
mailing list