Here's an infinitesimal elaboration which takes addresses from
one file and the message text from a second. Someone else can
show how to use a multi-word subject.


#!/bin/sh
#
if [ $# -ne 3 ] ;
  then
  echo "Usage: `basename $0` AddressFile MessageFile Subject(one word)" ;
  exit 1;
fi
#
if [ ! -r $1 ]
then
echo `basename $0`: File $1 not found!
exit 2
fi
if [ ! -r $2 ]
then
echo `basename $0`: File $2 not found!
exit 3
fi
#
cat $1 | while read LUSER;
do cat $2 | mutt -s $3 $LUSER
done
exit 0

-- 
(T.) Michael Sanders         internet: [EMAIL PROTECTED]
Physics Department           URL: http://www-personal.umich.edu/~sanders
University of Michigan       phone: 734/936-0799
Ann Arbor, MI 48109-1120     FAX: 734/764-6843

Reply via email to