home *** CD-ROM | disk | FTP | other *** search
- Path: sparky!uunet!spool.mu.edu!sdd.hp.com!saimiri.primate.wisc.edu!ames!nsisrv!Pt!postmaster@hq.af.mil!lpeters
- From: lpeters@postmaster@hq.af.mil (Leslie D Peters)
- Newsgroups: comp.unix.questions
- Subject: Re: Mailing to multiple people without each person seeing a list of all
- Keywords: elm, mail
- Message-ID: <15391@hq.hq.af.mil>
- Date: 22 Dec 92 21:14:14 GMT
- References: <BzLLLo.KxF@unix.amherst.edu>
- Sender: news@Pt.hq.af.mil
- Reply-To: lpeters@marge.hq.af.mil
- Organization: 7th Communications Group
- Lines: 53
-
- In article <BzLLLo.KxF@unix.amherst.edu>, rjyanco@unix.amherst.edu (Richard J. Yanco) writes:
- |> I send a daily mailing out to approximately 10 people from my account.
- |> If I have the names in a file foo.bar, is there any way to send a message
- |> to each person in the list, *independently*, with a single command?
- |>
- |> One option is obviously to
- |>
- |> mv foo.bar .forward
- |>
- |> and mail myself. But this is no good; mail might come in, and get bounced
- |> where I don't want it.
- |>
- |> Another option suggested to me was
- |>
- |> elm -s "Subj" `cat foo.bar` <message
- |>
- |> but every individual recipient gets a list of all recipients, which
- |> is not what I want. I'd like the equivalent of
- |>
- |> elm -s "Subj" harry@some.place.edu <message
- |> elm -s "Subj" bob@another.place.edu <message
- |> ...
- |> elm -s "Subj" jane@final.place.edu <message
- |>
- |> rather than
- |>
- |> elm -s "Subj" harry@s.p.e bob@a.p.e ... jane@f.p.e <message
- |>
- |>
- |>
- |> Is there any easy way to do this?
- |>
- |> (Email preferred.)
- |>
- |> Thanks-
-
- I would try:
-
- for i in `cat foo.bar`; do <mail package> -s "Subj" $i < message; done
-
- --
- /============================================================================\
- | | |
- | ___ | |
- | ___....-----'---`-----....___ | I haven't lost my mind -- |
- | ========================================= | |
- | ___`---..._______...---'___ | it's backed up on |
- | (___) _|_|_|_ (___) | tape somewhere. |
- | \\____.-'_.---._`-.____// | |
- | ~~~~`.__`---'__.'~~~~ | lpeters@marge.hq.af.mil |
- | `~~~' | |
- | | Les Peters |
- \============================================================================/
-