On Mon, 20 May 2013, Paul Heinlein wrote:

> I've never used -S, so I'm not sure what setting internal variables in
> mailx does. The tool I'd normally reach for in this situation is m4. If,
> for instance, you were able to loop through a list of subscribers and
> assign $NAME and $ADDRESS, then
>
>  m4 -D GREETING="$NAME" newsletter.m4 | mail -s "Subject" $ADDRESS
>
> The newletter.m4 would contain the GREETING token which would get replaced 
> with $NAME.

   Thanks, Paul. I'll read the m4 man page. And I see that mail is the same
as mailx. Interesting.

Much appreciated,

Rich

_______________________________________________
PLUG mailing list
[email protected]
http://lists.pdxlinux.org/mailman/listinfo/plug

Reply via email to