> Contents of some file
> cat /some/file | mail [EMAIL PROTECTED] -s test2

This would be a bad idea for any files which a) are binary, b) hane line
lengths exceeding what smtp promises to handle. There's another big catch
with using a program called "mail": every unix system and every distro
version installs something different as "mail". If you want to stay remotely
portable, you can use "mail" only for the most basic and crude things. Some
of those "mail" programs don't even allow you to specify the subject with
-s !!!

In the end I decided I wasn't having any of this rubbish, and found the most
stable solution which also deals with binary files and makes attachments, to
be  mutt -s ".." -a /some/file emailaddr
And all the settings are easily done and under my control. For something
embedded, -F is particularly handy.

Volker

-- 
Volker Kuhlmann                 is possibly list0570 with the domain in header
http://volker.dnsalias.net/             Please do not CC list postings to me.

Reply via email to