* Matthias LOITSCH ([EMAIL PROTECTED]) [010912 13:49]:
> just another question :)
> 
> i want to send a mail to many persons, but they shouldnt see that they mail is
> not sent only to them.
> with the Bcc i have to specify a To Adress... 
> 
> quite the same question : can i change one word in each mail ?
> for example :         "hello name1"
>               "hello name2"
>               ...

create a file called recipients that looks like this:

Alice:[EMAIL PROTECTED]
Bob:[EMAIL PROTECTED]
Eve:[EMAIL PROTECTED]

and your message in a file called message with __NAME__ where you want
to use the person's name.

Then do this in bash:


for recip in `cat recipients` ; do
  NAME=$(echo $recip | cut -d: -f 1)
  ADDR=$(echo $recip | cut -d: -f 2)
  cat message | sed -e "s/__NAME__/$NAME/g" | mail $ADDR
done

> i dont want to use it for span mails!!! :)

You'd better not!!!

-- 
Vineet                                   http://www.anti-dmca.org
Unauthorized use of this .sig may constitute violation of US law.
echo Qba\'g gernq ba zr\!             |tr 'a-zA-Z' 'n-za-mN-ZA-M'

PGP signature

Reply via email to