  | |  | Help Me with shell script please | Help Me with shell script please 2004-01-16 - By Jason Dixon
Back On Fri, 2004-01-16 at 14:34, Rudolf wrote:
> Hello All,
>
> I want to send the same mail massage to 100 people, but not in a way doing
> CC or BCC, but just a mail to a unique person...
> I have this 100 people email addresses in one file. The question is this:
> Is there a way to write some script which will do this job ?
Obviously, the person you run this as affects the From header. If you
need more refined control over the From (say, for spamming... gak!), you
could use Mail::Internet.
perl -e 'open(LIST, "address.txt "); while ( <LIST >) { open(MAIL, "|mail -s \ "subject goes here\ " $_ "); print MAIL "message goes here "; close(MAIL); } close(LIST); '
--
Jason Dixon, RHCE
DixonGroup Consulting
http://www.dixongroup.net
--
redhat-list mailing list
unsubscribe mailto:redhat-list-request@(protected)?subject=unsubscribe
https://www.redhat.com/mailman/listinfo/redhat-list
|
|
 |