🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: comp.mail.mush
Article #613

Re: How to send mail to multiple recipients

#613
From: Andrei Ivanov
Date: Mon, 28 Sep 1992 12:48
27 lines
1278 bytes
In article <antbh.717439413@strix>,
antbh@strix.udac.uu.se (Bernhard Helander) writes:
> 
> I am editing and distributing a small newsletter. The number of recipients
> have grown and I am acutely embarassed over the primitive distribution
> format. I have assembled all my subscribors in a file and when I send
> out the news letter a give a simple "r*" (reply all) command. This means
> that the header of each newsletter contains the names of all the addresses
> to the subscribers. Is there a more elegant way of doing this?
>

Try to use the following shell script:


----------------- cut here ------------------
:
subject=$1
file_with_usernames=${2:-$HOME/.friends}
file_with_message=$3

for name in `cat ${file_with_usernames}`
do
       cat ${file_with_message} | mail -s ${subject:-""} $name
done
----------------- cut here ------------------

Andrei Ivanov
Technical Details
Message-ID: <AGV4lngGkB@lynx.jet.riga.lv>
Path: arc1-ca.pugleaf.net!sparky!uunet!mcsun!fuug!kiae!relcom!usenet
References: <antbh.717439413@strix>

Show Full Headers
Complete Article Headers
Newsgroups: comp.mail.mush
Path: arc1-ca.pugleaf.net!sparky!uunet!mcsun!fuug!kiae!relcom!usenet
From: iva@jet.riga.lv (Andrei Ivanov)
Subject: Re: How to send mail to multiple recipients
Message-ID: <AGV4lngGkB@lynx.jet.riga.lv>
Lines: 29
Sender: news-service@kiae.su
Reply-To: iva@jet.riga.lv
Organization: The lvNet
References: <antbh.717439413@strix>
Date: Mon, 28 Sep 92 14:48:47 +0200