Article View: comp.mail.mush
Article #614Re: How to send mail to multiple recipients
From: Mark Sicignano
Date: Wed, 30 Sep 1992 15:23
Date: Wed, 30 Sep 1992 15:23
30 lines
1138 bytes
1138 bytes
In article <AGV4lngGkB@lynx.jet.riga.lv> iva@jet.riga.lv writes:
>
>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
Why use cat when you can just:
mail -s ${subject:-""} $name < ${file_with_message}
>done
>----------------- cut here ------------------
>
>Andrei Ivanov
I suggested that he create an alias with all of the recipients,
and "set no_expand".
Wouldn't that do what he needs and do it much more efficiently?
-mark
Technical Details
Message-ID:
<BvEDF1.34@hsi.com>Path:
arc1-ca.pugleaf.net!sparky!uunet!mercury.hsi.com!markReferences:
<antbh.717439413@strix> <AGV4lngGkB@lynx.jet.riga.lv>Show Full Headers
Complete Article Headers
Newsgroups: comp.mail.mush Path: arc1-ca.pugleaf.net!sparky!uunet!mercury.hsi.com!mark From: mark@hsi.com (Mark Sicignano) Subject: Re: How to send mail to multiple recipients Message-ID: <BvEDF1.34@hsi.com> Sender: news@hsi.com (USENET news) Nntp-Posting-Host: saturn.hsi.com Organization: 3M Health Information Systems, Wallingford, CT. References: <antbh.717439413@strix> <AGV4lngGkB@lynx.jet.riga.lv> Date: Wed, 30 Sep 1992 15:23:25 GMT Lines: 30