Maybe I am missing something here!
when you call that helper-script where is the e-mail you just received?
Let me explain:
I think I do not understand your script ...If someone could translate
that in perl OR explain me the program
What I can see is that you use sendmail sending to all addrss ... but
what is the $(_at_)? the message?
Now helper-script could read something like
tmp=/tmp/`basename $0`.$$; trap "rm -rf $tmp" 0
umask 077; mkdir $tmp || exit 1
(echo '#!/bin/sh';echo '/usr/lib/sendmail "$@" <'$tmp/message)
chmod 755 $tmp/sender
xargs $tmp/sender <addrss.txt
There's lots of ways to do it; that's just the first that leaps to mind.
that's not terribly efficient, nor terribly safe; if you are dealing
big enough mailing list to break shell backtick expansion, then you
ought to be using a serious mailing list manager. These include ezmlm,
smartlist, majordomo, and I'm sure many many others.