Re: Help Me with shell script please

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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@xxxxxxxxxx?subject=unsubscribe
https://www.redhat.com/mailman/listinfo/redhat-list

[Index of Archives]     [CentOS]     [Kernel Development]     [PAM]     [Fedora Users]     [Red Hat Development]     [Big List of Linux Books]     [Linux Admin]     [Gimp]     [Asterisk PBX]     [Yosemite News]     [Red Hat Crash Utility]


  Powered by Linux