On 20-Nov-2003/21:07 -0500, "Anthony E. Greene" <agreene@xxxxxxxxx> wrote: >On 18-Nov-2003/20:56 -0800, Dali Islam <ibmdali@xxxxxxxxx> wrote: >>I have acron job that send mutt mail with attatchment. >>I send this e-mail to 6 people and for each of them I >>have separate line. How I can send e-mail to various >>users by reading their e-mail address from file or >>something like that? > >Assuming the recipient list in a file, one address per line, this should >work: > >for recipient in $(ls /path/to/recipientlist.txt); do mutt -a /path/to/attachment -s "subject of message" $recipient < /dev/null; done > Actually, that should be 'cat' not 'ls'. Tony -- Anthony E. Greene <mailto:Anthony%20E.%20Greene%20%3Cagreene@xxxxxxxxx%3E> OpenPGP Key: 0x6C94239D/7B3D BD7D 7D91 1B44 BA26 C484 A42A 60DD 6C94 239D AOL/Yahoo Messenger: TonyG05 HomePage: <http://www.pobox.com/~agreene/> Linux. The choice of a GNU generation <http://www.linux.org/> -- redhat-list mailing list unsubscribe mailto:redhat-list-request@xxxxxxxxxx?subject=unsubscribe https://www.redhat.com/mailman/listinfo/redhat-list