On Tue, 26 Feb 2002, Jim Dawson wrote: > >%_If this message seems familliar, forgive me. I sent out a similar message last >week but I didn't see it or any replies to it on the list... > > I need to send an email message from the command line, either piping the output of a >command into a mail program or redirectig the text into it, e.g.: > > mycommand | mailprog -user [EMAIL PROTECTED] -subject "results of mycommand" > > or: > > mailprog -user [EMAIL PROTECTED] -subject "text" <textfile.txt > > I need to be able to email directly to the ISP as I am not running a mail server on >my linux box at this time. > > Does anyone know of a mail program that I might use to do this? I think I once saw >the 'mail' command used to send mail to a mail store on the same computer, but I >don't know if mail supports sending SMTP messages to a remote mail server. >
echo "this is the message" | mail -s "this is the subject" [EMAIL PROTECTED] -- Gerald Waugh
Want to buy your Pack or Services from MandrakeSoft? Go to http://www.mandrakestore.com