On Sat, 10 Feb 2001 20:59:27 Mike Fletcher wrote:
>I want to write a script and have the output directed to a file. I then
>want to mail the file to 2 reciepents.
>
>What is the command line arguments to use sendmail from the command line
>(within a script) to send mail to 2 reciepents as well as send an attache
>a file?
The attached file is the obstacle here. Without the attachment, you could
use:
cat messagefile | /usr/sbin/sendmail recipient1 recipient2
With an attachment, it would be simpler to just use mutt:
mutt -a <binaryfile> -i <messagebody> -s <subject> recipient1 recipient2
--
Anthony E. Greene <[EMAIL PROTECTED]> <http://www.pobox.com/~agreene/>
PGP Key: 0x6C94239D/7B3D BD7D 7D91 1B44 BA26 C484 A42A 60DD 6C94 239D
Chat: AOL/Yahoo: TonyG05 ICQ: 91183266
Linux. The choice of a GNU Generation. <http://www.linux.org/>
_______________________________________________
Redhat-list mailing list
[EMAIL PROTECTED]
https://listman.redhat.com/mailman/listinfo/redhat-list