The mailx man page describes the -S option:

-S variable[=value]
        Sets  the  internal option variable and, in case of a string option,
        assigns value to it.

I've not found an example of its use.

I have a working mailx script:
#!/bin/sh

for ADR in $(cat mailing-addr.list)
do
  cat msg | mailx -s "Subject here $ADR
done

Is there a way to use -S to add the first name salutation associated with
each email address in mailing-addr.list by putting that list of names in
another file?

If not, is there a way I would expand the shell script to add that
salutation to each recipient? For example, an associated for loop? (I'll
check my bash scripting book this evening.)

TIA,

Rich

Reply via email to