Dave wrote:
On Apr 4, 2005 1:10 PM, [EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote:

I want to email simple text files from the command line.

What's the simplest/smallest setup I can use (not sendmail) to allow use of the mail program from the command line to go to a server?


 If it doesn't need to be an attachment, try
cat file.txt | mail -s "This is your subject" [EMAIL PROTECTED]

You will need a '/usr/sbin/sendmail' The provider of that can be postfix, sendmail, etc. You can use the following commands:


as attachment: uuencode <file> <filename> | mail -s "<subject>" <email>
similiar to Dave's: mail -s "<subject>" <email> < <file>
--
"Do you mean now?" -- When asked for the time.
--Yogi Bera
--
[email protected]
http://www.kernel-panic.org/cgi-bin/mailman/listinfo/kplug-list

Reply via email to