Post by Heiner StevenPost by tonyI need to send mail like this
how do I send mail to multiple people? Is this the right syntax?
man mail appears to affirm that, yes. On my system, at least.
Post by Heiner Stevenwhile read address
do
echo test | mail "$address"
done < address.list
You can do that, too, of course. Having less bodies in the spool does
seem appealing, but if sending to strangers one may not want to show
everybody every other address in the To: line.
For which case I tend to construct a list of SMTP commands in a file
and feed it to the MTA directly. But before OP tries that, first read
at least rfcs 821 and 822 and consider that we already have more spam
to go round a couple of times over.
--
j p d (at) d s b (dot) t u d e l f t (dot) n l .